diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-12 22:24:21 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 13:01:20 -0500 |
commit | 41d28bca2da4bd75a8915c1ccf2cacf7f4a2e531 (patch) | |
tree | 1a3d658ecfe4375e0ca4f837f6c7f8397efdefba /fs/nfs | |
parent | b5ae6b15bd73e35b129408755a0804287a87e041 (diff) |
switch d_materialise_unique() users to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/dir.c | 4 | ||||
-rw-r--r-- | fs/nfs/getroot.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 06e8cfcbb670..44d7d0c7e376 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -499,7 +499,7 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry) | |||
499 | if (IS_ERR(inode)) | 499 | if (IS_ERR(inode)) |
500 | goto out; | 500 | goto out; |
501 | 501 | ||
502 | alias = d_materialise_unique(dentry, inode); | 502 | alias = d_splice_alias(inode, dentry); |
503 | if (IS_ERR(alias)) | 503 | if (IS_ERR(alias)) |
504 | goto out; | 504 | goto out; |
505 | else if (alias) { | 505 | else if (alias) { |
@@ -1393,7 +1393,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in | |||
1393 | nfs_advise_use_readdirplus(dir); | 1393 | nfs_advise_use_readdirplus(dir); |
1394 | 1394 | ||
1395 | no_entry: | 1395 | no_entry: |
1396 | res = d_materialise_unique(dentry, inode); | 1396 | res = d_splice_alias(inode, dentry); |
1397 | if (res != NULL) { | 1397 | if (res != NULL) { |
1398 | if (IS_ERR(res)) | 1398 | if (IS_ERR(res)) |
1399 | goto out_unblock_sillyrename; | 1399 | goto out_unblock_sillyrename; |
diff --git a/fs/nfs/getroot.c b/fs/nfs/getroot.c index ebc6a0add5ae..9ac3846cb59e 100644 --- a/fs/nfs/getroot.c +++ b/fs/nfs/getroot.c | |||
@@ -51,7 +51,7 @@ static int nfs_superblock_set_dummy_root(struct super_block *sb, struct inode *i | |||
51 | /* | 51 | /* |
52 | * Ensure that this dentry is invisible to d_find_alias(). | 52 | * Ensure that this dentry is invisible to d_find_alias(). |
53 | * Otherwise, it may be spliced into the tree by | 53 | * Otherwise, it may be spliced into the tree by |
54 | * d_materialise_unique if a parent directory from the same | 54 | * d_splice_alias if a parent directory from the same |
55 | * filesystem gets mounted at a later time. | 55 | * filesystem gets mounted at a later time. |
56 | * This again causes shrink_dcache_for_umount_subtree() to | 56 | * This again causes shrink_dcache_for_umount_subtree() to |
57 | * Oops, since the test for IS_ROOT() will fail. | 57 | * Oops, since the test for IS_ROOT() will fail. |