aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda/dir.c')
-rw-r--r--fs/coda/dir.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c
index aa40c811f8d2..619a8303766e 100644
--- a/fs/coda/dir.c
+++ b/fs/coda/dir.c
@@ -18,6 +18,7 @@
18#include <linux/errno.h> 18#include <linux/errno.h>
19#include <linux/string.h> 19#include <linux/string.h>
20#include <linux/spinlock.h> 20#include <linux/spinlock.h>
21#include <linux/namei.h>
21 22
22#include <asm/uaccess.h> 23#include <asm/uaccess.h>
23 24
@@ -541,9 +542,13 @@ out:
541/* called when a cache lookup succeeds */ 542/* called when a cache lookup succeeds */
542static int coda_dentry_revalidate(struct dentry *de, struct nameidata *nd) 543static int coda_dentry_revalidate(struct dentry *de, struct nameidata *nd)
543{ 544{
544 struct inode *inode = de->d_inode; 545 struct inode *inode;
545 struct coda_inode_info *cii; 546 struct coda_inode_info *cii;
546 547
548 if (nd->flags & LOOKUP_RCU)
549 return -ECHILD;
550
551 inode = de->d_inode;
547 if (!inode || coda_isroot(inode)) 552 if (!inode || coda_isroot(inode))
548 goto out; 553 goto out;
549 if (is_bad_inode(inode)) 554 if (is_bad_inode(inode))