jfs: fix d_revalidate oopsen on NFS exports
can't blindly check nd->flags in ->d_revalidate() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4714e63731
commit
8ce84eeb5b
|
@ -1600,7 +1600,7 @@ out:
|
||||||
|
|
||||||
static int jfs_ci_revalidate(struct dentry *dentry, struct nameidata *nd)
|
static int jfs_ci_revalidate(struct dentry *dentry, struct nameidata *nd)
|
||||||
{
|
{
|
||||||
if (nd->flags & LOOKUP_RCU)
|
if (nd && nd->flags & LOOKUP_RCU)
|
||||||
return -ECHILD;
|
return -ECHILD;
|
||||||
/*
|
/*
|
||||||
* This is not negative dentry. Always valid.
|
* This is not negative dentry. Always valid.
|
||||||
|
|
Loading…
Reference in a new issue