summaryrefslogtreecommitdiff
path: root/fs/f2fs/gc.h
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-10-05 17:22:44 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-10 02:20:56 +0300
commitd530d4d8e237f4d12c93bb76df40b69b8b8a1dcd (patch)
treea4496eb0dd00eef9caa6b190790502d91f847ff0 /fs/f2fs/gc.h
parent3342bb303bf48dd8bb5ac94c3356489ff53e4d04 (diff)
downloadlinux-d530d4d8e237f4d12c93bb76df40b69b8b8a1dcd.tar.xz
f2fs: support synchronous gc in ioctl
This patch drops in batches gc triggered through ioctl, since user can easily control the gc by designing the loop around the ->ioctl. We support synchronous gc by forcing using FG_GC in f2fs_gc, so with it, user can make sure that in this round all blocks gced were persistent in the device until ioctl returned. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.h')
-rw-r--r--fs/f2fs/gc.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h
index c5a055b3376e..b4a65be9f7d3 100644
--- a/fs/f2fs/gc.h
+++ b/fs/f2fs/gc.h
@@ -19,12 +19,6 @@
#define LIMIT_INVALID_BLOCK 40 /* percentage over total user space */
#define LIMIT_FREE_BLOCK 40 /* percentage over invalid + free space */
-/*
- * with this macro, we can control the max time we do garbage collection,
- * when user triggers batch mode gc by ioctl.
- */
-#define F2FS_BATCH_GC_MAX_NUM 16
-
/* Search max. number of dirty segments to select a victim segment */
#define DEF_MAX_VICTIM_SEARCH 4096 /* covers 8GB */