aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r--fs/xfs/xfs_bmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index ff8675b41973..e0389656ad2c 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -3751,9 +3751,10 @@ xfs_bmap_add_attrfork(
3751 ip->i_d.di_aformat = XFS_DINODE_FMT_EXTENTS; 3751 ip->i_d.di_aformat = XFS_DINODE_FMT_EXTENTS;
3752 } 3752 }
3753 ASSERT(ip->i_d.di_anextents == 0); 3753 ASSERT(ip->i_d.di_anextents == 0);
3754 IHOLD(ip); 3754
3755 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); 3755 xfs_trans_ijoin_ref(tp, ip, XFS_ILOCK_EXCL);
3756 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); 3756 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
3757
3757 switch (ip->i_d.di_format) { 3758 switch (ip->i_d.di_format) {
3758 case XFS_DINODE_FMT_DEV: 3759 case XFS_DINODE_FMT_DEV:
3759 ip->i_d.di_forkoff = roundup(sizeof(xfs_dev_t), 8) >> 3; 3760 ip->i_d.di_forkoff = roundup(sizeof(xfs_dev_t), 8) >> 3;