]> Pileus Git - ~andy/linux/commit
ext4: protect extent conversion after DIO with i_dio_count
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 18:27:38 +0000 (14:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 18:27:38 +0000 (14:27 -0400)
commite83403959fddb6d90e8c5e54bbce3110d0c82165
treee993e008bab6fee97a1c8389f6bfc7bb438f2b49
parentb0857d309faefaf5443752458e8af1a4b22b3e92
ext4: protect extent conversion after DIO with i_dio_count

Make sure extent conversion after DIO happens while i_dio_count is
still elevated so that inode_dio_wait() waits until extent conversion
is done.  This removes the need for explicit waiting for extent
conversion in some cases.

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c