Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34769
b: refs/heads/master
c: 738a351
h: refs/heads/master
i:
  34767: 546ef8d
v: v3
  • Loading branch information
David Howells authored and Trond Myklebust committed Sep 23, 2006
1 parent 18c20f3 commit f56026c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27ba851244f627a302d0fc6469d1ad413fc34fcb
refs/heads/master: 738a35195941ecf604d3070e2a053e1df3de350b
5 changes: 5 additions & 0 deletions trunk/fs/nfs/getroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/vfs.h>
#include <linux/namei.h>
#include <linux/namespace.h>
#include <linux/security.h>

#include <asm/system.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -109,6 +110,8 @@ struct dentry *nfs_get_root(struct super_block *sb, struct nfs_fh *mntfh)
return ERR_PTR(-ENOMEM);
}

security_d_instantiate(mntroot, inode);

if (!mntroot->d_op)
mntroot->d_op = server->nfs_client->rpc_ops->dentry_ops;

Expand Down Expand Up @@ -296,6 +299,8 @@ struct dentry *nfs4_get_root(struct super_block *sb, struct nfs_fh *mntfh)
return ERR_PTR(-ENOMEM);
}

security_d_instantiate(mntroot, inode);

if (!mntroot->d_op)
mntroot->d_op = server->nfs_client->rpc_ops->dentry_ops;

Expand Down

0 comments on commit f56026c

Please sign in to comment.