OSDN Git Service

fs/affs: use affs_test_opt()
[uclinux-h8/linux.git] / fs / affs / amigaffs.c
index 1a90e19..5022ac9 100644 (file)
@@ -472,7 +472,8 @@ bool
 affs_nofilenametruncate(const struct dentry *dentry)
 {
        struct inode *inode = dentry->d_inode;
-       return AFFS_SB(inode->i_sb)->s_flags & AFFS_MOUNT_SF_NO_TRUNCATE;
+
+       return affs_test_opt(AFFS_SB(inode->i_sb)->s_flags, SF_NO_TRUNCATE);
 
 }