diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-13 18:23:35 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-15 15:21:21 -0700 |
commit | 44a83499dda714d9262a9bf4fdac8c077893c9e6 (patch) | |
tree | c81bc6c47a133910f3e7d79a3a6e86b4bcbbcee7 /fs/f2fs/segment.h | |
parent | 5f281fab9b9a30073616c5e25da2111dec2fe482 (diff) | |
download | linux-44a83499dda714d9262a9bf4fdac8c077893c9e6.tar.bz2 |
f2fs: add maximum prefree segments
In 1TB storage, we need to admit 22841 prefree segments, which can consume
too much segments.
This patch sets 8GB in max. prefree segments in that case.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r-- | fs/f2fs/segment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 57d450fb4643..b33f73ec60a4 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -16,6 +16,7 @@ #define NULL_SECNO ((unsigned int)(~0)) #define DEF_RECLAIM_PREFREE_SEGMENTS 5 /* 5% over total segments */ +#define DEF_MAX_RECLAIM_PREFREE_SEGMENTS 4096 /* 8GB in maximum */ /* L: Logical segment # in volume, R: Relative segment # in main area */ #define GET_L2R_SEGNO(free_i, segno) (segno - free_i->start_segno) |