]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
writeback: don't propagate AOP_WRITEPAGE_ACTIVATE
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 17 Oct 2007 06:18:32 +0000 (23:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 16:12:43 +0000 (08:12 -0800)
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>
mm/page-writeback.c

index 44720363374cb24ca3e90cb48db64d99e5bbdb5b..97ddc5879259f1af9925099cc028cf7913fefd0c 100644 (file)
@@ -672,8 +672,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)) {