Skip to content
Snippets Groups Projects
Commit e4230030 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7a405079
No related branches found
No related tags found
No related merge requests found
...@@ -849,8 +849,10 @@ int write_cache_pages(struct address_space *mapping, ...@@ -849,8 +849,10 @@ int write_cache_pages(struct address_space *mapping,
ret = (*writepage)(page, wbc, data); ret = (*writepage)(page, wbc, data);
if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) {
unlock_page(page); unlock_page(page);
ret = 0;
}
if (ret || (--(wbc->nr_to_write) <= 0)) if (ret || (--(wbc->nr_to_write) <= 0))
done = 1; done = 1;
if (wbc->nonblocking && bdi_write_congested(bdi)) { if (wbc->nonblocking && bdi_write_congested(bdi)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment