OSDN Git Service

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>
Thu, 8 Feb 2018 02:05:56 +0000 (18:05 -0800)
commit84960fca96c4330d79d384fe21357f26537357de
treec00d144447ac590304ed3d8f40618045fbc62e5d
parent292c8e1cfd4d2eafdd7e90ea269f146dc275e412
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