summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-07-01 02:07:30 +0200
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-10-08 11:01:15 +0200
commitf7769f9cf95fa1a63eea81f13126f8fe7f708dc1 (patch)
treef786327fb04e85f0758569254708b936101cf973
parentfs: befs: remove comment that confuses kernel-doc (diff)
downloadlinux-f7769f9cf95fa1a63eea81f13126f8fe7f708dc1.tar.xz
linux-f7769f9cf95fa1a63eea81f13126f8fe7f708dc1.zip
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: Luis de Bethencourt <luisbg@osg.samsung.com>
-rw-r--r--fs/befs/linuxvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index cf8f9206d4eb..62889eb4a97e 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -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) {