|
@@ -3618,7 +3618,7 @@ ext4_ext_handle_uninitialized_extents(handle_t *handle, struct inode *inode,
|
|
{
|
|
{
|
|
int ret = 0;
|
|
int ret = 0;
|
|
int err = 0;
|
|
int err = 0;
|
|
- ext4_io_end_t *io = EXT4_I(inode)->cur_aio_dio;
|
|
|
|
|
|
+ ext4_io_end_t *io = ext4_inode_aio(inode);
|
|
|
|
|
|
ext_debug("ext4_ext_handle_uninitialized_extents: inode %lu, logical "
|
|
ext_debug("ext4_ext_handle_uninitialized_extents: inode %lu, logical "
|
|
"block %llu, max_blocks %u, flags %x, allocated %u\n",
|
|
"block %llu, max_blocks %u, flags %x, allocated %u\n",
|
|
@@ -3876,7 +3876,7 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
|
|
unsigned int allocated = 0, offset = 0;
|
|
unsigned int allocated = 0, offset = 0;
|
|
unsigned int allocated_clusters = 0;
|
|
unsigned int allocated_clusters = 0;
|
|
struct ext4_allocation_request ar;
|
|
struct ext4_allocation_request ar;
|
|
- ext4_io_end_t *io = EXT4_I(inode)->cur_aio_dio;
|
|
|
|
|
|
+ ext4_io_end_t *io = ext4_inode_aio(inode);
|
|
ext4_lblk_t cluster_offset;
|
|
ext4_lblk_t cluster_offset;
|
|
|
|
|
|
ext_debug("blocks %u/%u requested for inode %lu\n",
|
|
ext_debug("blocks %u/%u requested for inode %lu\n",
|