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/hpfs | |
| parent | e0b3f595d13b3e9ce9cdf53935e7f304c04b5b2b (diff) | |
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/hpfs')
| -rw-r--r-- | fs/hpfs/dentry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hpfs/dentry.c b/fs/hpfs/dentry.c index 60e6d334d79a..a804300f4dce 100644 --- a/fs/hpfs/dentry.c +++ b/fs/hpfs/dentry.c | |||
| @@ -50,7 +50,7 @@ static int hpfs_compare_dentry(const struct dentry *parent, const struct dentry | |||
| 50 | 50 | ||
| 51 | if (hpfs_chk_name(name->name, &bl)) | 51 | if (hpfs_chk_name(name->name, &bl)) |
| 52 | return 1; | 52 | return 1; |
| 53 | if (hpfs_compare_names(parent->d_sb, str, al, name->name, bl, 0)) | 53 | if (hpfs_compare_names(dentry->d_sb, str, al, name->name, bl, 0)) |
| 54 | return 1; | 54 | return 1; |
| 55 | return 0; | 55 | return 0; |
| 56 | } | 56 | } |
