f2fs: allow to clear F2FS_COMPR_FL flag
authorChao Yu <yuchao0@huawei.com>
Tue, 10 Mar 2020 12:50:09 +0000 (20:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Mar 2020 15:25:38 +0000 (08:25 -0700)
commit2536ac6872e5265b4d9d263122cee02e3d5cae1d
tree872b42add5d2d5489a02d3162083f6ea82420bf9
parent6cfdf15fdbff85acbaa92920bee88f37ca0404ba
f2fs: allow to clear F2FS_COMPR_FL flag

If regular inode has no compressed cluster, allow using 'chattr -c'
to remove its compress flag, recovering it to a non-compressed file.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c