]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
writeback: don't propagate AOP_WRITEPAGE_ACTIVATE
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 17 Oct 2007 06:26:02 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:46 +0000 (08:42 -0700)
This is a writeback-internal marker but we're propagating it all the way back
to userspace!.

Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c

index 4073d531cd7b6ad8486330f02edcea9a16e9d5e7..33485213158810d5b50879556cb76c268faa4b68 100644 (file)
@@ -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)) {