summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMatthew Wilcox2014-06-05 01:07:45 +0200
committerLinus Torvalds2014-06-05 01:54:02 +0200
commit57d998456ae8680ed446aa1993f45f4d8a9a5973 (patch)
tree9e6eef3413adffabf06dc10dafab03c02d21c8be /include/linux
parentfs/mpage.c: factor clean_buffers() out of __mpage_writepage() (diff)
downloadkernel-qcow2-linux-57d998456ae8680ed446aa1993f45f4d8a9a5973.tar.gz
kernel-qcow2-linux-57d998456ae8680ed446aa1993f45f4d8a9a5973.tar.xz
kernel-qcow2-linux-57d998456ae8680ed446aa1993f45f4d8a9a5973.zip
fs/mpage.c: factor page_endio() out of mpage_end_io()
page_endio() takes care of updating all the appropriate page flags once I/O has finished to a page. Switch to using mapping_set_error() instead of setting AS_EIO directly; this will handle thin-provisioned devices correctly. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Cc: Dave Chinner <david@fromorbit.com> Cc: Dheeraj Reddy <dheeraj.reddy@intel.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pagemap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index 45598f1e9aa3..718214c5584e 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -425,6 +425,8 @@ static inline void wait_on_page_writeback(struct page *page)
extern void end_page_writeback(struct page *page);
void wait_for_stable_page(struct page *page);
+void page_endio(struct page *page, int rw, int err);
+
/*
* Add an arbitrary waiter to a page's wait queue
*/