]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
f2fs: use f2fs_sb_has_device_alias during option parsing
authorEric Sandeen <sandeen@redhat.com>
Mon, 3 Mar 2025 17:12:11 +0000 (11:12 -0600)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 13 Mar 2025 18:16:06 +0000 (18:16 +0000)
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>
fs/f2fs/super.c

index 1da1f154e5d42ba9498ccbc5acfab9329482939c..40c78f526f9454720e55525a72a84db8bfc8d4ba 100644 (file)
@@ -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;
                        }