Skip to content

Commit 64ee750

Browse files
Eric SandeenJaegeuk Kim
authored andcommitted
f2fs: use f2fs_sb_has_device_alias during option parsing
Rather than using F2FS_HAS_FEATURE directly, use f2fs_sb_has_device_alias macro during option parsing for consistency. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent d7b549d commit 64ee750

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/f2fs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
841841
set_opt(sbi, READ_EXTENT_CACHE);
842842
break;
843843
case Opt_noextent_cache:
844-
if (F2FS_HAS_FEATURE(sbi, F2FS_FEATURE_DEVICE_ALIAS)) {
844+
if (f2fs_sb_has_device_alias(sbi)) {
845845
f2fs_err(sbi, "device aliasing requires extent cache");
846846
return -EINVAL;
847847
}

0 commit comments

Comments
 (0)