提交 f7769f9c 编写于 作者: L Luis de Bethencourt

befs: avoid dereferencing dentry twice

No need to dereference dentry twice to get the name when we already have
it stored in a local variable.
Signed-off-by: NLuis de Bethencourt <luisbg@osg.samsung.com>
上级 39dcfd3b
......@@ -179,7 +179,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
kfree(utfname);
} else {
ret = befs_btree_find(sb, ds, dentry->d_name.name, &offset);
ret = befs_btree_find(sb, ds, name, &offset);
}
if (ret == BEFS_BT_NOT_FOUND) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册