summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-11-14 17:38:35 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-11-25 10:15:57 -0800
commit7702bdbe505a22380dd958e2ee35124c7c414806 (patch)
tree8dc084fff9df8d1330389b877514977b7eb97ecf /fs/f2fs/f2fs.h
parentc040ff9d69fd1d782fe577ba9e35c1f5798158ae (diff)
downloadop-kernel-dev-7702bdbe505a22380dd958e2ee35124c7c414806.zip
op-kernel-dev-7702bdbe505a22380dd958e2ee35124c7c414806.tar.gz
f2fs: avoid BG_GC in f2fs_balance_fs
If many threads hit has_not_enough_free_secs() in f2fs_balance_fs() at the same time, all the threads would do FG_GC or BG_GC. In this critical path, we totally don't need to do BG_GC at all. Let's avoid that. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index a1dcc60..c963fa8 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -2183,7 +2183,7 @@ int f2fs_migrate_page(struct address_space *, struct page *, struct page *,
int start_gc_thread(struct f2fs_sb_info *);
void stop_gc_thread(struct f2fs_sb_info *);
block_t start_bidx_of_node(unsigned int, struct inode *);
-int f2fs_gc(struct f2fs_sb_info *, bool);
+int f2fs_gc(struct f2fs_sb_info *, bool, bool);
void build_gc_manager(struct f2fs_sb_info *);
/*
OpenPOWER on IntegriCloud