]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix forgetten xattr lock protection in ext4_expand_extra_isize
authorMiao Xie <miaoxie@huawei.com>
Sun, 6 Aug 2017 04:27:38 +0000 (00:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Aug 2017 04:27:38 +0000 (00:27 -0400)
commitc649e6dc5bf5e8b69a957918a2b44f2c493aca44
treecab4fdbe9b87cda858f93fa1b89519d69a9fd4df
parenta5f03c3221eddb14a1be0642af03feaa312f870c
ext4: fix forgetten xattr lock protection in ext4_expand_extra_isize

We should avoid the contention between the i_extra_isize update and
the inline data insertion, so move the xattr trylock in front of
i_extra_isize update.

Signed-off-by: Miao Xie <miaoxie@huawei.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
fs/ext4/inode.c
fs/ext4/xattr.c