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/amigaffs.c b/fs/affs/amigaffs.c
index d6c7a51..d8f217c 100644
--- a/fs/affs/amigaffs.c
+++ b/fs/affs/amigaffs.c
@@ -472,9 +472,7 @@
 bool
 affs_nofilenametruncate(const struct dentry *dentry)
 {
-	struct inode *inode = d_inode(dentry);
-
-	return affs_test_opt(AFFS_SB(inode->i_sb)->s_flags, SF_NO_TRUNCATE);
+	return affs_test_opt(AFFS_SB(dentry->d_sb)->s_flags, SF_NO_TRUNCATE);
 }
 
 /* Check if the name is valid for a affs object. */