summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-07-01 01:07:30 +0100
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-10-08 10:01:15 +0100
commitf7769f9cf95fa1a63eea81f13126f8fe7f708dc1 (patch)
treef786327fb04e85f0758569254708b936101cf973
parent39dcfd3b3448e03a77cd918a918cdea5d84d6076 (diff)
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) {