diff options
Diffstat (limited to 'fs/hfsplus/unicode.c')
-rw-r--r-- | fs/hfsplus/unicode.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/fs/hfsplus/unicode.c b/fs/hfsplus/unicode.c index 7dd90a540546..a3f0bfcc881e 100644 --- a/fs/hfsplus/unicode.c +++ b/fs/hfsplus/unicode.c | |||
@@ -324,7 +324,8 @@ int hfsplus_asc2uni(struct super_block *sb, struct hfsplus_unistr *ustr, | |||
324 | * Composed unicode characters are decomposed and case-folding is performed | 324 | * Composed unicode characters are decomposed and case-folding is performed |
325 | * if the appropriate bits are (un)set on the superblock. | 325 | * if the appropriate bits are (un)set on the superblock. |
326 | */ | 326 | */ |
327 | int hfsplus_hash_dentry(struct dentry *dentry, struct qstr *str) | 327 | int hfsplus_hash_dentry(const struct dentry *dentry, const struct inode *inode, |
328 | struct qstr *str) | ||
328 | { | 329 | { |
329 | struct super_block *sb = dentry->d_sb; | 330 | struct super_block *sb = dentry->d_sb; |
330 | const char *astr; | 331 | const char *astr; |
@@ -367,10 +368,12 @@ int hfsplus_hash_dentry(struct dentry *dentry, struct qstr *str) | |||
367 | * Composed unicode characters are decomposed and case-folding is performed | 368 | * Composed unicode characters are decomposed and case-folding is performed |
368 | * if the appropriate bits are (un)set on the superblock. | 369 | * if the appropriate bits are (un)set on the superblock. |
369 | */ | 370 | */ |
370 | int hfsplus_compare_dentry(struct dentry *dentry, | 371 | int hfsplus_compare_dentry(const struct dentry *parent, |
371 | struct qstr *s1, struct qstr *s2) | 372 | const struct inode *pinode, |
373 | const struct dentry *dentry, const struct inode *inode, | ||
374 | unsigned int len, const char *str, const struct qstr *name) | ||
372 | { | 375 | { |
373 | struct super_block *sb = dentry->d_sb; | 376 | struct super_block *sb = parent->d_sb; |
374 | int casefold, decompose, size; | 377 | int casefold, decompose, size; |
375 | int dsize1, dsize2, len1, len2; | 378 | int dsize1, dsize2, len1, len2; |
376 | const u16 *dstr1, *dstr2; | 379 | const u16 *dstr1, *dstr2; |
@@ -380,10 +383,10 @@ int hfsplus_compare_dentry(struct dentry *dentry, | |||
380 | 383 | ||
381 | casefold = test_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags); | 384 | casefold = test_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags); |
382 | decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); | 385 | decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); |
383 | astr1 = s1->name; | 386 | astr1 = str; |
384 | len1 = s1->len; | 387 | len1 = len; |
385 | astr2 = s2->name; | 388 | astr2 = name->name; |
386 | len2 = s2->len; | 389 | len2 = name->len; |
387 | dsize1 = dsize2 = 0; | 390 | dsize1 = dsize2 = 0; |
388 | dstr1 = dstr2 = NULL; | 391 | dstr1 = dstr2 = NULL; |
389 | 392 | ||