aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r--fs/xfs/xfs_bmap_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
index 45ec9e40150c..708775613e55 100644
--- a/fs/xfs/xfs_bmap_util.c
+++ b/fs/xfs/xfs_bmap_util.c
@@ -821,7 +821,7 @@ bool
821xfs_can_free_eofblocks(struct xfs_inode *ip, bool force) 821xfs_can_free_eofblocks(struct xfs_inode *ip, bool force)
822{ 822{
823 /* prealloc/delalloc exists only on regular files */ 823 /* prealloc/delalloc exists only on regular files */
824 if (!S_ISREG(ip->i_d.di_mode)) 824 if (!S_ISREG(VFS_I(ip)->i_mode))
825 return false; 825 return false;
826 826
827 /* 827 /*
@@ -1726,7 +1726,7 @@ xfs_swap_extents(
1726 xfs_lock_two_inodes(ip, tip, XFS_MMAPLOCK_EXCL); 1726 xfs_lock_two_inodes(ip, tip, XFS_MMAPLOCK_EXCL);
1727 1727
1728 /* Verify that both files have the same format */ 1728 /* Verify that both files have the same format */
1729 if ((ip->i_d.di_mode & S_IFMT) != (tip->i_d.di_mode & S_IFMT)) { 1729 if ((VFS_I(ip)->i_mode & S_IFMT) != (VFS_I(tip)->i_mode & S_IFMT)) {
1730 error = -EINVAL; 1730 error = -EINVAL;
1731 goto out_unlock; 1731 goto out_unlock;
1732 } 1732 }