f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE
authorDaeho Jeong <daehojeong@google.com>
Thu, 3 Dec 2020 06:56:15 +0000 (15:56 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 08:12:08 +0000 (00:12 -0800)
commit5fdb322ff2c2b4ad519f490dcb7ebb96c5439af7
tree961cbb4b45f575490a7548ef1abddf9d7c2f8742
parent602a16d58e9aab3c423bcf051033ea6c9e8a6d37
f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

Added two ioctl to decompress/compress explicitly the compression
enabled file in "compress_mode=user" mount option.

Using these two ioctls, the users can make a control of compression
and decompression of their files.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
include/uapi/linux/f2fs.h