]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/direct-io.c
direct-io: move aio_complete into ->end_io
authorChristoph Hellwig <hch@infradead.org>
Sun, 18 Jul 2010 21:17:09 +0000 (21:17 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 26 Jul 2010 21:09:02 +0000 (16:09 -0500)
commit40e2e97316af6e62affab7a392e792494b8d9dde
tree981ce3b464467893683d47f52ae5d35fdd32d46a
parent696123fca877905696591829c97a2cef11c8d048
direct-io: move aio_complete into ->end_io

Filesystems with unwritten extent support must not complete an AIO request
until the transaction to convert the extent has been commited.  That means
the aio_complete calls needs to be moved into the ->end_io callback so
that the filesystem can control when to call it exactly.

This makes a bit of a mess out of dio_complete and the ->end_io callback
prototype even more complicated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/direct-io.c
fs/ext4/inode.c
fs/ocfs2/aops.c
fs/xfs/linux-2.6/xfs_aops.c
fs/xfs/linux-2.6/xfs_aops.h
include/linux/fs.h