diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-10-18 20:06:40 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-11-07 21:40:59 +0300 |
commit | f5a53edcf01eae21dc3ef1845515229e8459e5cc (patch) | |
tree | bd7e880c73aad8ae2afb9105c226902632399593 /fs/f2fs/recovery.c | |
parent | bc005a4d5347da68e690f78d365d8927c87dc85a (diff) | |
download | linux-f5a53edcf01eae21dc3ef1845515229e8459e5cc.tar.xz |
f2fs: support aligned pinned file
This patch supports 2MB-aligned pinned file, which can guarantee no GC at all
by allocating fully valid 2MB segment.
Check free segments by has_not_enough_free_secs() with large budget.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r-- | fs/f2fs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 783773e4560d..76477f71d4ee 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -711,7 +711,7 @@ next: f2fs_put_page(page, 1); } if (!err) - f2fs_allocate_new_segments(sbi); + f2fs_allocate_new_segments(sbi, NO_CHECK_TYPE); return err; } |