diff options
author | Federico Cuello <[email protected]> | 2009-02-11 13:04:39 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-02-11 14:25:37 -0800 |
commit | 89e1219004b3657cc014521663eeef0744f1c99d (patch) | |
tree | 350162d8019af504c6f0461b2f54606bd6af7142 /fs/jbd2/commit.c | |
parent | 6c5979631b4b03c9288776562c18036765e398c1 (diff) |
writeback: fix break condition
Commit dcf6a79dda5cc2a2bec183e50d829030c0972aaa ("write-back: fix
nr_to_write counter") fixed nr_to_write counter, but didn't set the break
condition properly.
If nr_to_write == 0 after being decremented it will loop one more time
before setting done = 1 and breaking the loop.
[[email protected]: coding-style fixes]
Cc: Artem Bityutskiy <[email protected]>
Acked-by: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions