diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-10-16 23:18:32 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-21 09:25:53 -0800 |
commit | b2e5acb6fa62e0907b16ef5373cc3e8bb93c078b (patch) | |
tree | 70c91deccebb43d16b3c5ee3189c785b2d32431a | |
parent | e8b00d71ad9f833cc4e002e3ad853d078f4bc2dc (diff) |
writeback: don't propagate AOP_WRITEPAGE_ACTIVATE
patch e423003028183df54f039dfda8b58c49e78c89d7 in mainline.
This is a writeback-internal marker but we're propagating it all the way back
to userspace!.
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>
-rw-r--r-- | mm/page-writeback.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index eec1481ba44..2d39627d0db 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -674,8 +674,10 @@ retry: ret = (*writepage)(page, wbc, data); - if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) + if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) { unlock_page(page); + ret = 0; + } if (ret || (--(wbc->nr_to_write) <= 0)) done = 1; if (wbc->nonblocking && bdi_write_congested(bdi)) { |