]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/affs/namei.c
fs: make helpers idmap mount aware
[people/ms/linux.git] / fs / affs / namei.c
index 41c5749f4db78078b2e1d5b65c31aa0b2c7724c1..9ad22befce28888389b2723be48c4337253a150a 100644 (file)
@@ -242,7 +242,8 @@ affs_unlink(struct inode *dir, struct dentry *dentry)
 }
 
 int
-affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl)
+affs_create(struct user_namespace *mnt_userns, struct inode *dir,
+           struct dentry *dentry, umode_t mode, bool excl)
 {
        struct super_block *sb = dir->i_sb;
        struct inode    *inode;
@@ -273,7 +274,8 @@ affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl)
 }
 
 int
-affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
+affs_mkdir(struct user_namespace *mnt_userns, struct inode *dir,
+          struct dentry *dentry, umode_t mode)
 {
        struct inode            *inode;
        int                      error;
@@ -311,7 +313,8 @@ affs_rmdir(struct inode *dir, struct dentry *dentry)
 }
 
 int
-affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname)
+affs_symlink(struct user_namespace *mnt_userns, struct inode *dir,
+            struct dentry *dentry, const char *symname)
 {
        struct super_block      *sb = dir->i_sb;
        struct buffer_head      *bh;
@@ -498,9 +501,9 @@ done:
        return retval;
 }
 
-int affs_rename2(struct inode *old_dir, struct dentry *old_dentry,
-                       struct inode *new_dir, struct dentry *new_dentry,
-                       unsigned int flags)
+int affs_rename2(struct user_namespace *mnt_userns, struct inode *old_dir,
+                struct dentry *old_dentry, struct inode *new_dir,
+                struct dentry *new_dentry, unsigned int flags)
 {
 
        if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE))