summaryrefslogtreecommitdiff
path: root/fs/isofs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-10-29 01:40:11 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-31 13:33:17 +0300
commitb0afd8e5db7b11aa9078e82e7f9abc30dc35a3c1 (patch)
tree699707a904ddabdd6efbae1b5bef18ba2506ceec /fs/isofs/namei.c
parentf643ff550afbc82a2bc7026f4a6d64427e4fbc99 (diff)
downloadlinux-b0afd8e5db7b11aa9078e82e7f9abc30dc35a3c1.tar.xz
isofs: don't bother with ->d_op for normal case
we only need it for joliet and case-insensitive mounts Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/isofs/namei.c')
-rw-r--r--fs/isofs/namei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/isofs/namei.c b/fs/isofs/namei.c
index 6f6dd0c6429f..7b543e6b6526 100644
--- a/fs/isofs/namei.c
+++ b/fs/isofs/namei.c
@@ -20,6 +20,8 @@ isofs_cmp(struct dentry *dentry, const char *compare, int dlen)
struct qstr qstr;
qstr.name = compare;
qstr.len = dlen;
+ if (likely(!dentry->d_op))
+ return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen);
return dentry->d_op->d_compare(NULL, NULL, dentry->d_name.len, dentry->d_name.name, &qstr);
}