Commit a950a652 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Eric Van Hensbergen
Browse files

fs/9p: Clarify cached dentry delete operation

Update the comment to indicate that we don't want to cache
negative dentries.
Signed-off-by: default avatarAneesh Kumar K.V <>
Signed-off-by: default avatarVenkateswararao Jujjuri <>
Signed-off-by: default avatarEric Van Hensbergen <>
parent 7263cebe
......@@ -63,20 +63,15 @@ static int v9fs_dentry_delete(const struct dentry *dentry)
* v9fs_cached_dentry_delete - called when dentry refcount equals 0
* @dentry: dentry in question
* Only return 1 if our inode is invalid. Only non-synthetic files
* (ones without mtime == 0) should be calling this function.
static int v9fs_cached_dentry_delete(const struct dentry *dentry)
struct inode *inode = dentry->d_inode;
P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->,
P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n",
dentry->, dentry);
/* Don't cache negative dentries */
if (!dentry->d_inode)
return 1;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment