|
@@ -3056,7 +3056,7 @@ static ssize_t ext4_ext_direct_IO(int rw, struct kiocb *iocb,
|
|
|
* hook to the iocb.
|
|
|
*/
|
|
|
iocb->private = NULL;
|
|
|
- EXT4_I(inode)->cur_aio_dio = NULL;
|
|
|
+ ext4_inode_aio_set(inode, NULL);
|
|
|
if (!is_sync_kiocb(iocb)) {
|
|
|
ext4_io_end_t *io_end =
|
|
|
ext4_init_io_end(inode, GFP_NOFS);
|
|
@@ -3073,7 +3073,7 @@ static ssize_t ext4_ext_direct_IO(int rw, struct kiocb *iocb,
|
|
|
* is a unwritten extents needs to be converted
|
|
|
* when IO is completed.
|
|
|
*/
|
|
|
- EXT4_I(inode)->cur_aio_dio = iocb->private;
|
|
|
+ ext4_inode_aio_set(inode, io_end);
|
|
|
}
|
|
|
|
|
|
if (overwrite)
|
|
@@ -3093,7 +3093,7 @@ static ssize_t ext4_ext_direct_IO(int rw, struct kiocb *iocb,
|
|
|
NULL,
|
|
|
DIO_LOCKING);
|
|
|
if (iocb->private)
|
|
|
- EXT4_I(inode)->cur_aio_dio = NULL;
|
|
|
+ ext4_inode_aio_set(inode, NULL);
|
|
|
/*
|
|
|
* The io_end structure takes a reference to the inode,
|
|
|
* that structure needs to be destroyed and the
|