diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-29 18:23:59 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-29 18:27:51 -0400 |
commit | d3fe19852e96aabe3084c82ec2f3fb4918ab6d1e (patch) | |
tree | 15a1acf8ef106766ed1bf7b937657be6a799745a /fs/cifs | |
parent | e0b3f595d13b3e9ce9cdf53935e7f304c04b5b2b (diff) | |
download | op-kernel-dev-d3fe19852e96aabe3084c82ec2f3fb4918ab6d1e.zip op-kernel-dev-d3fe19852e96aabe3084c82ec2f3fb4918ab6d1e.tar.gz |
cifs, msdos, vfat, hfs+: don't bother with parent in ->d_compare()
dentry->d_sb is just as good as parent->d_sb
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 4e53253..cf394da 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -906,7 +906,7 @@ static int cifs_ci_hash(const struct dentry *dentry, struct qstr *q) static int cifs_ci_compare(const struct dentry *parent, const struct dentry *dentry, unsigned int len, const char *str, const struct qstr *name) { - struct nls_table *codepage = CIFS_SB(parent->d_sb)->local_nls; + struct nls_table *codepage = CIFS_SB(dentry->d_sb)->local_nls; wchar_t c1, c2; int i, l1, l2; |