From: Christoph Hellwig Date: Tue, 27 Jul 2010 15:56:06 +0000 (-0400) Subject: direct-io: move aio_complete into ->end_io X-Git-Tag: v2.6.36-rc1~501^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=552ef8024f909d9b3a7442d0ab0d48a22de24e9e;p=pandora-kernel.git 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 Reviewed-by: Jan Kara Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed