fs/mpage.c: factor page_endio() out of mpage_end_io()
authorMatthew Wilcox <[email protected]>
Wed, 4 Jun 2014 23:07:45 +0000 (16:07 -0700)
committerLinus Torvalds <[email protected]>
Wed, 4 Jun 2014 23:54:02 +0000 (16:54 -0700)
commit57d998456ae8680ed446aa1993f45f4d8a9a5973
tree9e6eef3413adffabf06dc10dafab03c02d21c8be
parent90768eee4565adb28ea28b4ac5081c676a8fe1f2
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 <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Dheeraj Reddy <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/mpage.c
include/linux/pagemap.h
mm/filemap.c