namei: prepare for idmapped mounts
[linux-2.6-microblaze.git] / fs / nfsd / nfs4recover.c
index 186fa2c..891395c 100644 (file)
@@ -233,7 +233,7 @@ nfsd4_create_clid_dir(struct nfs4_client *clp)
                 * as well be forgiving and just succeed silently.
                 */
                goto out_put;
-       status = vfs_mkdir(d_inode(dir), dentry, S_IRWXU);
+       status = vfs_mkdir(&init_user_ns, d_inode(dir), dentry, S_IRWXU);
 out_put:
        dput(dentry);
 out_unlock:
@@ -353,7 +353,7 @@ nfsd4_unlink_clid_dir(char *name, int namlen, struct nfsd_net *nn)
        status = -ENOENT;
        if (d_really_is_negative(dentry))
                goto out;
-       status = vfs_rmdir(d_inode(dir), dentry);
+       status = vfs_rmdir(&init_user_ns, d_inode(dir), dentry);
 out:
        dput(dentry);
 out_unlock:
@@ -443,7 +443,7 @@ purge_old(struct dentry *parent, struct dentry *child, struct nfsd_net *nn)
        if (nfs4_has_reclaimed_state(name, nn))
                goto out_free;
 
-       status = vfs_rmdir(d_inode(parent), child);
+       status = vfs_rmdir(&init_user_ns, d_inode(parent), child);
        if (status)
                printk("failed to remove client recovery directory %pd\n",
                                child);