f2fs: add compress_mode mount option
authorDaeho Jeong <daehojeong@google.com>
Tue, 1 Dec 2020 04:08:02 +0000 (13:08 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 08:11:57 +0000 (00:11 -0800)
commit602a16d58e9aab3c423bcf051033ea6c9e8a6d37
treeb14640b883fad02423a7ffe06f90607f585a0524
parentdb48965264110dd74d1436fc21dac328d04385d2
f2fs: add compress_mode mount option

We will add a new "compress_mode" mount option to control file
compression mode. This supports "fs" and "user". In "fs" mode (default),
f2fs does automatic compression on the compression enabled files.
In "user" mode, f2fs disables the automaic compression and gives the
user discretion of choosing the target file and the timing. It means
the user can do manual compression/decompression on the compression
enabled files using ioctls.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/filesystems/f2fs.rst
fs/f2fs/compress.c
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c