direct-io: always call ->end_io if non-NULL
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Feb 2016 03:40:51 +0000 (14:40 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 8 Feb 2016 03:40:51 +0000 (14:40 +1100)
commit187372a3b9faff68ed61c291d0135e6739e0dbdf
tree7eeed8ee2944dbdcc60ec49cf08f1b1604400b3e
parent36f90b0a2ddd60823fe193a85e60ff1906c2a9b3
direct-io: always call ->end_io if non-NULL

This way we can pass back errors to the file system, and allow for
cleanup required for all direct I/O invocations.

Also allow the ->end_io handlers to return errors on their own, so that
I/O completion errors can be passed on to the callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/dax.c
fs/direct-io.c
fs/ext4/inode.c
fs/ocfs2/aops.c
fs/xfs/xfs_aops.c
include/linux/fs.h
This page took 0.026591 seconds and 5 git commands to generate.