]> git.karo-electronics.de Git - karo-tx-linux.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)
commitcf0a5e818fe216dbdf5da4e829e157d27ebfc8a4
tree2bfe8893f6a5c206521d2cc934015fba5baba9cb
parent3b10fdc6d8bd048f4fb14af5eda2051ace7b8b16
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