diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-10-17 02:26:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:46 -0400 |
commit | e423003028183df54f039dfda8b58c49e78c89d7 (patch) | |
tree | 56df3ebc51ff86d58b054d9833770e78fb484973 /mm | |
parent | 7a4050791b23c55a451974027d41d72a9b78039b (diff) |
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: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-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 4073d531cd7..33485213158 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -849,8 +849,10 @@ retry: | |||
849 | 849 | ||
850 | ret = (*writepage)(page, wbc, data); | 850 | ret = (*writepage)(page, wbc, data); |
851 | 851 | ||
852 | if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) | 852 | if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) { |
853 | unlock_page(page); | 853 | unlock_page(page); |
854 | ret = 0; | ||
855 | } | ||
854 | if (ret || (--(wbc->nr_to_write) <= 0)) | 856 | if (ret || (--(wbc->nr_to_write) <= 0)) |
855 | done = 1; | 857 | done = 1; |
856 | if (wbc->nonblocking && bdi_write_congested(bdi)) { | 858 | if (wbc->nonblocking && bdi_write_congested(bdi)) { |