f2fs: add an ioctl to disable GC for specific file
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 8 Dec 2017 00:25:39 +0000 (16:25 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:30:15 +0000 (13:30 -0800)
commited1311e58555356e4e3b9b33693c81f642745252
treea77f0056d549f1e645759bb04c05f7cd64564429
parentb08974ab5e0a62f157cf52aeb117c9180383cb3b
f2fs: add an ioctl to disable GC for specific file

This patch gives a flag to disable GC on given file, which would be useful, when
user wants to keep its block map. It also conducts in-place-update for dontmove
file.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/gc.h
fs/f2fs/sysfs.c
include/linux/f2fs_fs.h