diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-12-08 01:25:39 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-01-22 23:56:35 +0100 |
commit | 1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a (patch) | |
tree | 802af8c30b004b0a3c439a9b23d25a69b9aaef5e /fs/f2fs/gc.h | |
parent | f2fs: prevent newly created inode from being dirtied incorrectly (diff) | |
download | linux-1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a.tar.xz 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.h | 2 |
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 */ |