projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15a8b93
)
nfs: replace d_add with d_splice_alias in atomic_open
author
Peng Tao
<tao.peng@primarydata.com>
Thu, 29 Jun 2017 13:34:50 +0000
(06:34 -0700)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 20:00:14 +0000
(16:00 -0400)
It's a trival change but follows knfsd export document that asks
for d_splice_alias during lookup.
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index 90bc4025ca3cbb6efb4e5b9d02981262d702acdd..1255891e56955c79d47da0a2d934a139cf18ed8d 100644
(file)
--- a/
fs/nfs/dir.c
+++ b/
fs/nfs/dir.c
@@
-1518,7
+1518,7
@@
int nfs_atomic_open(struct inode *dir, struct dentry *dentry,
d_drop(dentry);
switch (err) {
case -ENOENT:
- d_
add(dentry, NULL
);
+ d_
splice_alias(NULL, dentry
);
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
break;
case -EISDIR: