[PATCH] pass iocb to dio_iodone_t
XFS will have to look at iocb->private to fix aio+dio. No other filesystem is using the blockdev_direct_IO* end_io callback. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
16c29b67fb
commit
92198f7eaa
@@ -149,11 +149,12 @@ linvfs_unwritten_convert(
|
||||
*/
|
||||
STATIC void
|
||||
linvfs_unwritten_convert_direct(
|
||||
struct inode *inode,
|
||||
struct kiocb *iocb,
|
||||
loff_t offset,
|
||||
ssize_t size,
|
||||
void *private)
|
||||
{
|
||||
struct inode *inode = iocb->ki_filp->f_dentry->d_inode;
|
||||
ASSERT(!private || inode == (struct inode *)private);
|
||||
|
||||
/* private indicates an unwritten extent lay beneath this IO */
|
||||
|
Reference in New Issue
Block a user