aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 521d841b1fd1..c60133f0d8e4 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -715,13 +715,15 @@ static int cifs_ci_hash(struct dentry *dentry, struct qstr *q)
715 return 0; 715 return 0;
716} 716}
717 717
718static int cifs_ci_compare(struct dentry *dentry, struct qstr *a, 718static int cifs_ci_compare(const struct dentry *parent,
719 struct qstr *b) 719 const struct inode *pinode,
720 const struct dentry *dentry, const struct inode *inode,
721 unsigned int len, const char *str, const struct qstr *name)
720{ 722{
721 struct nls_table *codepage = CIFS_SB(dentry->d_inode->i_sb)->local_nls; 723 struct nls_table *codepage = CIFS_SB(pinode->i_sb)->local_nls;
722 724
723 if ((a->len == b->len) && 725 if ((name->len == len) &&
724 (nls_strnicmp(codepage, a->name, b->name, a->len) == 0)) 726 (nls_strnicmp(codepage, name->name, str, len) == 0))
725 return 0; 727 return 0;
726 return 1; 728 return 1;
727} 729}