diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2012-09-28 23:21:09 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-09-28 23:21:09 -0400 |
commit | f45ee3a1ea438af96e4fd2c0b16d195e67ef235f (patch) | |
tree | a773005b8473dc3e4a25fc91fae8c564084e3af7 /fs/ext4/extents.c | |
parent | ba39ebb61401cfe0ccd58dd0cd4da88465528c0a (diff) |
ext4: ext4_inode_info diet
Generic inode has unused i_private pointer which may be used as cur_aio_dio
storage.
TODO: If cur_aio_dio will be passed as an argument to get_block_t this allow
to have concurent AIO_DIO requests.
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 8f08c7b77179..a1f56c3e773b 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -3618,7 +3618,7 @@ ext4_ext_handle_uninitialized_extents(handle_t *handle, struct inode *inode, | |||
3618 | { | 3618 | { |
3619 | int ret = 0; | 3619 | int ret = 0; |
3620 | int err = 0; | 3620 | int err = 0; |
3621 | ext4_io_end_t *io = EXT4_I(inode)->cur_aio_dio; | 3621 | ext4_io_end_t *io = ext4_inode_aio(inode); |
3622 | 3622 | ||
3623 | ext_debug("ext4_ext_handle_uninitialized_extents: inode %lu, logical " | 3623 | ext_debug("ext4_ext_handle_uninitialized_extents: inode %lu, logical " |
3624 | "block %llu, max_blocks %u, flags %x, allocated %u\n", | 3624 | "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, | |||
3876 | unsigned int allocated = 0, offset = 0; | 3876 | unsigned int allocated = 0, offset = 0; |
3877 | unsigned int allocated_clusters = 0; | 3877 | unsigned int allocated_clusters = 0; |
3878 | struct ext4_allocation_request ar; | 3878 | struct ext4_allocation_request ar; |
3879 | ext4_io_end_t *io = EXT4_I(inode)->cur_aio_dio; | 3879 | ext4_io_end_t *io = ext4_inode_aio(inode); |
3880 | ext4_lblk_t cluster_offset; | 3880 | ext4_lblk_t cluster_offset; |
3881 | 3881 | ||
3882 | ext_debug("blocks %u/%u requested for inode %lu\n", | 3882 | ext_debug("blocks %u/%u requested for inode %lu\n", |