affs ->d_compare(): don't bother with ->d_inode
Use ->d_sb directly.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/affs/namei.c b/fs/affs/namei.c
index eb32029..27ca732 100644
--- a/fs/affs/namei.c
+++ b/fs/affs/namei.c
@@ -136,7 +136,7 @@
{
return __affs_compare_dentry(len, str, name, affs_toupper,
- affs_nofilenametruncate(parent));
+ affs_nofilenametruncate(dentry));
}
static int
@@ -144,7 +144,7 @@
unsigned int len, const char *str, const struct qstr *name)
{
return __affs_compare_dentry(len, str, name, affs_intl_toupper,
- affs_nofilenametruncate(parent));
+ affs_nofilenametruncate(dentry));
}