提交 13a2c3be 编写于 作者: J J. Bruce Fields 提交者: Al Viro

dcache: fix outdated DCACHE_NEED_LOOKUP comment

The DCACHE_NEED_LOOKUP case referred to here was removed with
39e3c955 "vfs: remove
DCACHE_NEED_LOOKUP".

There are only four real_lookup() callers and all of them pass in an
unhashed dentry just returned from d_alloc.
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 f80de2cd
...@@ -1298,8 +1298,8 @@ static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir, ...@@ -1298,8 +1298,8 @@ static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir,
} }
/* /*
* Call i_op->lookup on the dentry. The dentry must be negative but may be * Call i_op->lookup on the dentry. The dentry must be negative and
* hashed if it was pouplated with DCACHE_NEED_LOOKUP. * unhashed.
* *
* dir->d_inode->i_mutex must be held * dir->d_inode->i_mutex must be held
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册