diff options
-rw-r--r-- | fs/orangefs/dcache.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/fs/orangefs/dcache.c b/fs/orangefs/dcache.c index be06e1532a3b..fe484cf93e5c 100644 --- a/fs/orangefs/dcache.c +++ b/fs/orangefs/dcache.c | |||
@@ -118,8 +118,12 @@ static int orangefs_d_revalidate(struct dentry *dentry, unsigned int flags) | |||
118 | return 0; | 118 | return 0; |
119 | 119 | ||
120 | /* We do not need to continue with negative dentries. */ | 120 | /* We do not need to continue with negative dentries. */ |
121 | if (!dentry->d_inode) | 121 | if (!dentry->d_inode) { |
122 | goto out; | 122 | gossip_debug(GOSSIP_DCACHE_DEBUG, |
123 | "%s: negative dentry or positive dentry and inode valid.\n", | ||
124 | __func__); | ||
125 | return 1; | ||
126 | } | ||
123 | 127 | ||
124 | /* Now we must perform a getattr to validate the inode contents. */ | 128 | /* Now we must perform a getattr to validate the inode contents. */ |
125 | 129 | ||
@@ -129,14 +133,7 @@ static int orangefs_d_revalidate(struct dentry *dentry, unsigned int flags) | |||
129 | __FILE__, __func__, __LINE__); | 133 | __FILE__, __func__, __LINE__); |
130 | return 0; | 134 | return 0; |
131 | } | 135 | } |
132 | if (ret == 0) | 136 | return !ret; |
133 | return 0; | ||
134 | |||
135 | out: | ||
136 | gossip_debug(GOSSIP_DCACHE_DEBUG, | ||
137 | "%s: negative dentry or positive dentry and inode valid.\n", | ||
138 | __func__); | ||
139 | return 1; | ||
140 | } | 137 | } |
141 | 138 | ||
142 | const struct dentry_operations orangefs_dentry_operations = { | 139 | const struct dentry_operations orangefs_dentry_operations = { |