nfs: dget_parent() never returns NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
516162b92d
commit
1cfb7072c1
|
@ -452,10 +452,8 @@ int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
|
|||
struct dentry *pd_dentry;
|
||||
|
||||
pd_dentry = dget_parent(dentry);
|
||||
if (pd_dentry != NULL) {
|
||||
nfs_zap_caches(d_inode(pd_dentry));
|
||||
dput(pd_dentry);
|
||||
}
|
||||
nfs_zap_caches(d_inode(pd_dentry));
|
||||
dput(pd_dentry);
|
||||
}
|
||||
nfs_free_fattr(res.fattr);
|
||||
if (error < 0)
|
||||
|
|
Loading…
Reference in a new issue