aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/erofs/inode.c2
-rw-r--r--fs/erofs/super.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c
index 4b2b1f357972..6c28ed75dc82 100644
--- a/fs/erofs/inode.c
+++ b/fs/erofs/inode.c
@@ -365,7 +365,7 @@ int erofs_getattr(struct user_namespace *mnt_userns, const struct path *path,
stat->attributes_mask |= (STATX_ATTR_COMPRESSED |
STATX_ATTR_IMMUTABLE);
- generic_fillattr(&init_user_ns, inode, stat);
+ generic_fillattr(mnt_userns, inode, stat);
return 0;
}
diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index dbfe2cbbb00e..a326445af7d0 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -821,7 +821,7 @@ static struct file_system_type erofs_fs_type = {
.name = "erofs",
.init_fs_context = erofs_init_fs_context,
.kill_sb = erofs_kill_sb,
- .fs_flags = FS_REQUIRES_DEV,
+ .fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
};
MODULE_ALIAS_FS("erofs");