diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-10-24 12:37:26 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-11-27 00:53:55 +0100 |
commit | 2c70c5e3874e8cf2f39f4ce4e2b832f4380a0c1b (patch) | |
tree | edc61ac95eca64a9903e8926f790954e147902b4 /fs/f2fs/file.c | |
parent | f2fs: clean up f2fs_sb_has_##feature_name (diff) | |
download | linux-2c70c5e3874e8cf2f39f4ce4e2b832f4380a0c1b.tar.xz linux-2c70c5e3874e8cf2f39f4ce4e2b832f4380a0c1b.zip |
f2fs: introduce __is_large_section() for cleanup
Introduce a wrapper __is_large_section() to clean up codes.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 82f144052fce..a114eacc0d7e 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2560,7 +2560,7 @@ static int f2fs_ioc_flush_device(struct file *filp, unsigned long arg) return -EFAULT; if (sbi->s_ndevs <= 1 || sbi->s_ndevs - 1 <= range.dev_num || - sbi->segs_per_sec != 1) { + __is_large_section(sbi)) { f2fs_msg(sbi->sb, KERN_WARNING, "Can't flush %u in %d for segs_per_sec %u != 1\n", range.dev_num, sbi->s_ndevs, |