Re: [f2fs-dev] [PATCH] f2fs: make file immutable even if releasing zero compression block

From: Chao Yu
Date: Mon Aug 03 2020 - 20:56:41 EST


On 2020/7/30 13:09, Daeho Jeong wrote:
From: Daeho Jeong <daehojeong@xxxxxxxxxx>

When we use F2FS_IOC_RELEASE_COMPRESS_BLOCKS ioctl, if we can't find
any compressed blocks in the file even with large file size, the
ioctl just ends up without changing the file's status as immutable.
It makes the user, who expects that the file is immutable when it
returns successfully, confused.

Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>

Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>

Thanks,