fs: port ->setattr() to pass mnt_idmap
[linux-2.6-block.git] / fs / hpfs / inode.c
index 82208cc28ebd2e7d413b18ec534f375b911f1f0e..e50e92a424327a1cf45c16e1d1fb452ee109cf73 100644 (file)
@@ -257,7 +257,7 @@ void hpfs_write_inode_nolock(struct inode *i)
        brelse(bh);
 }
 
-int hpfs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry,
+int hpfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
                 struct iattr *attr)
 {
        struct inode *inode = d_inode(dentry);
@@ -275,7 +275,7 @@ int hpfs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry,
        if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size)
                goto out_unlock;
 
-       error = setattr_prepare(&init_user_ns, dentry, attr);
+       error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
        if (error)
                goto out_unlock;
 
@@ -289,7 +289,7 @@ int hpfs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry,
                hpfs_truncate(inode);
        }
 
-       setattr_copy(&init_user_ns, inode, attr);
+       setattr_copy(&nop_mnt_idmap, inode, attr);
 
        hpfs_write_inode(inode);