mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
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>
This commit is contained in:
parent
d7b549def0
commit
64ee7503cb
|
|
@ -841,7 +841,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
|
|||
set_opt(sbi, READ_EXTENT_CACHE);
|
||||
break;
|
||||
case Opt_noextent_cache:
|
||||
if (F2FS_HAS_FEATURE(sbi, F2FS_FEATURE_DEVICE_ALIAS)) {
|
||||
if (f2fs_sb_has_device_alias(sbi)) {
|
||||
f2fs_err(sbi, "device aliasing requires extent cache");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user