]> git.karo-electronics.de Git - karo-tx-linux.git/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)
commit9eb661a5a661c729eb91a9ffba8e5a00ce8f2e74
treee993e008bab6fee97a1c8389f6bfc7bb438f2b49
parentadcec6d5377bebe2711d0277e9e9cd07b3ce5d64
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