Skip to content

Commit 531dfae

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: keep inline_data when compression conversion
We can keep compressed inode's data inline before inline conversion. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent aa57697 commit 531dfae

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/f2fs/file.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,11 +1822,6 @@ static int f2fs_setflags_common(struct inode *inode, u32 iflags, u32 mask)
18221822
if (iflags & F2FS_NOCOMP_FL)
18231823
return -EINVAL;
18241824
if (iflags & F2FS_COMPR_FL) {
1825-
int err = f2fs_convert_inline_inode(inode);
1826-
1827-
if (err)
1828-
return err;
1829-
18301825
if (!f2fs_may_compress(inode))
18311826
return -EINVAL;
18321827

0 commit comments

Comments
 (0)