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/ext4.h | |
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/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 8b6902c4d7be..3e8e185e5e22 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -912,8 +912,6 @@ struct ext4_inode_info { | |||
912 | struct list_head i_completed_io_list; | 912 | struct list_head i_completed_io_list; |
913 | spinlock_t i_completed_io_lock; | 913 | spinlock_t i_completed_io_lock; |
914 | atomic_t i_ioend_count; /* Number of outstanding io_end structs */ | 914 | atomic_t i_ioend_count; /* Number of outstanding io_end structs */ |
915 | /* current io_end structure for async DIO write*/ | ||
916 | ext4_io_end_t *cur_aio_dio; | ||
917 | atomic_t i_aiodio_unwritten; /* Nr. of inflight conversions pending */ | 915 | atomic_t i_aiodio_unwritten; /* Nr. of inflight conversions pending */ |
918 | 916 | ||
919 | spinlock_t i_block_reservation_lock; | 917 | spinlock_t i_block_reservation_lock; |
@@ -1338,6 +1336,16 @@ static inline void ext4_set_io_unwritten_flag(struct inode *inode, | |||
1338 | } | 1336 | } |
1339 | } | 1337 | } |
1340 | 1338 | ||
1339 | static inline ext4_io_end_t *ext4_inode_aio(struct inode *inode) | ||
1340 | { | ||
1341 | return inode->i_private; | ||
1342 | } | ||
1343 | |||
1344 | static inline void ext4_inode_aio_set(struct inode *inode, ext4_io_end_t *io) | ||
1345 | { | ||
1346 | inode->i_private = io; | ||
1347 | } | ||
1348 | |||
1341 | /* | 1349 | /* |
1342 | * Inode dynamic state flags | 1350 | * Inode dynamic state flags |
1343 | */ | 1351 | */ |