summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-10-05 11:02:54 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-09 16:20:57 -0700
commit6aefd93b01379bf0b62f8b38dcf7a21397893833 (patch)
tree1d01c1c728ab42d50282c0d54f86a0ceedef0cd1 /fs/f2fs/segment.h
parent456b88e4d15de833165cce67c2cdf998139e2fc1 (diff)
downloadop-kernel-dev-6aefd93b01379bf0b62f8b38dcf7a21397893833.zip
op-kernel-dev-6aefd93b01379bf0b62f8b38dcf7a21397893833.tar.gz
f2fs: introduce background_gc=sync mount option
This patch introduce background_gc=sync enabling synchronous cleaning in background. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r--fs/f2fs/segment.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index a294da7..e9afb58 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -137,10 +137,12 @@ enum {
/*
* BG_GC means the background cleaning job.
* FG_GC means the on-demand cleaning job.
+ * FORCE_FG_GC means on-demand cleaning job in background.
*/
enum {
BG_GC = 0,
- FG_GC
+ FG_GC,
+ FORCE_FG_GC,
};
/* for a function parameter to select a victim segment */
OpenPOWER on IntegriCloud