|
@@ -1518,10 +1518,14 @@ static int ext4_fill_super (struct super_block *sb, void *data, int silent)
|
|
set_opt(sbi->s_mount_opt, GRPID);
|
|
set_opt(sbi->s_mount_opt, GRPID);
|
|
if (def_mount_opts & EXT4_DEFM_UID16)
|
|
if (def_mount_opts & EXT4_DEFM_UID16)
|
|
set_opt(sbi->s_mount_opt, NO_UID32);
|
|
set_opt(sbi->s_mount_opt, NO_UID32);
|
|
|
|
+#ifdef CONFIG_EXT4DEV_FS_XATTR
|
|
if (def_mount_opts & EXT4_DEFM_XATTR_USER)
|
|
if (def_mount_opts & EXT4_DEFM_XATTR_USER)
|
|
set_opt(sbi->s_mount_opt, XATTR_USER);
|
|
set_opt(sbi->s_mount_opt, XATTR_USER);
|
|
|
|
+#endif
|
|
|
|
+#ifdef CONFIG_EXT4DEV_FS_POSIX_ACL
|
|
if (def_mount_opts & EXT4_DEFM_ACL)
|
|
if (def_mount_opts & EXT4_DEFM_ACL)
|
|
set_opt(sbi->s_mount_opt, POSIX_ACL);
|
|
set_opt(sbi->s_mount_opt, POSIX_ACL);
|
|
|
|
+#endif
|
|
if ((def_mount_opts & EXT4_DEFM_JMODE) == EXT4_DEFM_JMODE_DATA)
|
|
if ((def_mount_opts & EXT4_DEFM_JMODE) == EXT4_DEFM_JMODE_DATA)
|
|
sbi->s_mount_opt |= EXT4_MOUNT_JOURNAL_DATA;
|
|
sbi->s_mount_opt |= EXT4_MOUNT_JOURNAL_DATA;
|
|
else if ((def_mount_opts & EXT4_DEFM_JMODE) == EXT4_DEFM_JMODE_ORDERED)
|
|
else if ((def_mount_opts & EXT4_DEFM_JMODE) == EXT4_DEFM_JMODE_ORDERED)
|