summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_jbd2.h
diff options
context:
space:
mode:
authorMiao Xie2017-08-06 07:00:49 +0200
committerTheodore Ts'o2017-08-06 07:00:49 +0200
commitc03b45b853f5829816d871283c792e7527a7ded1 (patch)
treec2d6203d6cf6e923292ea60ca17b15385b47d79e /fs/ext4/ext4_jbd2.h
parentext4: cleanup ext4_expand_extra_isize_ea() (diff)
downloadkernel-qcow2-linux-c03b45b853f5829816d871283c792e7527a7ded1.tar.gz
kernel-qcow2-linux-c03b45b853f5829816d871283c792e7527a7ded1.tar.xz
kernel-qcow2-linux-c03b45b853f5829816d871283c792e7527a7ded1.zip
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>
Diffstat (limited to 'fs/ext4/ext4_jbd2.h')
-rw-r--r--fs/ext4/ext4_jbd2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h
index dabad1bc8617..48143e32411c 100644
--- a/fs/ext4/ext4_jbd2.h
+++ b/fs/ext4/ext4_jbd2.h
@@ -227,6 +227,9 @@ int ext4_reserve_inode_write(handle_t *handle, struct inode *inode,
int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode);
+int ext4_expand_extra_isize(struct inode *inode,
+ unsigned int new_extra_isize,
+ struct ext4_iloc *iloc);
/*
* Wrapper functions with which ext4 calls into JBD.
*/