summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-12-07 16:25:39 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-22 14:56:35 -0800
commit1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a (patch)
tree802af8c30b004b0a3c439a9b23d25a69b9aaef5e /fs/f2fs/gc.h
parent9ac1e2d88d076aa1ae9e33d44a9bbc8ae3bfa791 (diff)
downloadlinux-1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a.tar.gz
linux-1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a.tar.bz2
linux-1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a.zip
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>
Diffstat (limited to 'fs/f2fs/gc.h')
-rw-r--r--fs/f2fs/gc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h
index 9325191fab2d..b0045d4c8d1e 100644
--- a/fs/f2fs/gc.h
+++ b/fs/f2fs/gc.h
@@ -20,6 +20,8 @@
#define LIMIT_INVALID_BLOCK 40 /* percentage over total user space */
#define LIMIT_FREE_BLOCK 40 /* percentage over invalid + free space */
+#define DEF_GC_FAILED_PINNED_FILES 2048
+
/* Search max. number of dirty segments to select a victim segment */
#define DEF_MAX_VICTIM_SEARCH 4096 /* covers 8GB */