diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-30 00:22:49 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-30 00:22:49 +0200 |
commit | e0b3f595d13b3e9ce9cdf53935e7f304c04b5b2b (patch) | |
tree | 5146778c032b7b73b7adeae3cf4743d16c5216e8 /fs/affs/amigaffs.c | |
parent | fold _d_rehash() and __d_rehash() together (diff) | |
download | linux-e0b3f595d13b3e9ce9cdf53935e7f304c04b5b2b.tar.xz linux-e0b3f595d13b3e9ce9cdf53935e7f304c04b5b2b.zip |
affs ->d_compare(): don't bother with ->d_inode
Use ->d_sb directly.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/affs/amigaffs.c')
-rw-r--r-- | fs/affs/amigaffs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c index d6c7a51c93e4..d8f217c711d3 100644 --- a/fs/affs/amigaffs.c +++ b/fs/affs/amigaffs.c @@ -472,9 +472,7 @@ affs_warning(struct super_block *sb, const char *function, const char *fmt, ...) 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. */ |