ext4, project: expand inode extra size if possible
authorMiao Xie <miaoxie@huawei.com>
Sun, 6 Aug 2017 05:00:49 +0000 (01:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Aug 2017 05:00:49 +0000 (01:00 -0400)
commitc03b45b853f5829816d871283c792e7527a7ded1
treec2d6203d6cf6e923292ea60ca17b15385b47d79e
parentb640b2c51b26459fc08f2185a385495b0f509a80
ext4, project: expand inode extra size if possible

When upgrading from old format, try to set project id
to old file first time, it will return EOVERFLOW, but if
that file is dirtied(touch etc), changing project id will
be allowed, this might be confusing for users, we could
try to expand @i_extra_isize here too.

Reported-by: Zhang Yi <yi.zhang@huawei.com>
Signed-off-by: Miao Xie <miaoxie@huawei.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4_jbd2.h
fs/ext4/inode.c
fs/ext4/ioctl.c