]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: restructure ext4_expand_extra_isize
authorMiao Xie <miaoxie@huawei.com>
Sun, 6 Aug 2017 04:40:01 +0000 (00:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Aug 2017 04:40:01 +0000 (00:40 -0400)
commit9c7b6a68b0e29911fb81bbc658779fade6ca363b
tree2bfe8893f6a5c206521d2cc934015fba5baba9cb
parent5143589ebb4f076ebbdbac614c96484aac59338d
ext4: restructure ext4_expand_extra_isize

Current ext4_expand_extra_isize just tries to expand extra isize, if
someone is holding xattr lock or some check fails, it will give up.
So rename its name to ext4_try_to_expand_extra_isize.

Besides that, we clean up unnecessary check and move some relative checks
into it.

Signed-off-by: Miao Xie <miaoxie@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
fs/ext4/inode.c
fs/ext4/xattr.c