summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2019-10-18 19:06:40 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2019-11-07 19:40:59 +0100
commitf5a53edcf01eae21dc3ef1845515229e8459e5cc (patch)
treebd7e880c73aad8ae2afb9105c226902632399593 /fs/f2fs/super.c
parentf2fs: avoid kernel panic on corruption test (diff)
downloadlinux-f5a53edcf01eae21dc3ef1845515229e8459e5cc.tar.xz
linux-f5a53edcf01eae21dc3ef1845515229e8459e5cc.zip
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/super.c')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index f320fd11db48..c02a47ce551b 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2853,6 +2853,7 @@ static void init_sb_info(struct f2fs_sb_info *sbi)
spin_lock_init(&sbi->dev_lock);
init_rwsem(&sbi->sb_lock);
+ init_rwsem(&sbi->pin_sem);
}
static int init_percpu_info(struct f2fs_sb_info *sbi)