diff options
author | Chao Yu <yuchao0@huawei.com> | 2019-04-24 23:14:28 +0800 |
---|---|---|
committer | Chao Yu <yuchao0@huawei.com> | 2019-04-27 23:08:26 +0800 |
commit | 0abecd447a844a5f8274dbda3adfd3098f31b5aa (patch) | |
tree | a0b670b4ba5b6419b6e3c8ab11903b1e3e0014a1 | |
parent | 8dccb35bafdfeb6884f5f5250c5c3c7306f02dd2 (diff) | |
download | f2fs-tools-compression.tar.gz |
libf2fs: consider compression in calc_extra_isize()compression
Signed-off-by: Chao Yu <yuchao0@huawei.com>
-rw-r--r-- | lib/libf2fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c index e1a9bcf..c0579a9 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -1215,6 +1215,8 @@ unsigned int calc_extra_isize(void) if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)); size = offsetof(struct f2fs_inode, i_crtime); if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)); + size = offsetof(struct f2fs_inode, i_compress_algrithm); + if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)); size = offsetof(struct f2fs_inode, i_extra_end); return size; |