You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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
+1
-1
@@ -215,7 +215,7 @@ static struct page *dio_get_page(struct dio *dio)
|
||||
static void dio_complete(struct dio *dio, loff_t offset, ssize_t bytes)
|
||||
{
|
||||
if (dio->end_io && dio->result)
|
||||
dio->end_io(dio->inode, offset, bytes, dio->map_bh.b_private);
|
||||
dio->end_io(dio->iocb, offset, bytes, dio->map_bh.b_private);
|
||||
if (dio->lock_type == DIO_LOCKING)
|
||||
up_read(&dio->inode->i_alloc_sem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user