From: Andrew Morton Date: Wed, 17 Oct 2007 06:26:02 +0000 (-0700) Subject: writeback: don't propagate AOP_WRITEPAGE_ACTIVATE X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e423003028183df54f039dfda8b58c49e78c89d7;p=linux-beck.git writeback: don't propagate AOP_WRITEPAGE_ACTIVATE This is a writeback-internal marker but we're propagating it all the way back to userspace!. Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 4073d531cd7b..334852131588 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -849,8 +849,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)) {