aboutsummaryrefslogtreecommitdiff
path: root/mm/page_isolation.c
diff options
context:
space:
mode:
authorFederico Cuello <fedux@lugmen.org.ar>2009-02-11 13:04:39 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-02-17 09:46:17 -0800
commit3c5badb6ff029a53c281a2bab62ff9d12a04725b (patch)
tree8187c2694e8fddedd393ec3edae39421709d691b /mm/page_isolation.c
parent7d120e20744a6a8d9dc3a3342bf9c385c44a3aaf (diff)
writeback: fix break condition
commit 89e1219004b3657cc014521663eeef0744f1c99d upstream. 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. [akpm@linux-foundation.org: coding-style fixes] Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Acked-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm/page_isolation.c')
0 files changed, 0 insertions, 0 deletions