aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_trans_inode.c')
-rw-r--r--fs/xfs/xfs_trans_inode.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/xfs_trans_inode.c b/fs/xfs/xfs_trans_inode.c
index 04cc08a1b663..865eeb63ce16 100644
--- a/fs/xfs/xfs_trans_inode.c
+++ b/fs/xfs/xfs_trans_inode.c
@@ -88,7 +88,7 @@ xfs_trans_ijoin(
88 /* 88 /*
89 * Get a log_item_desc to point at the new item. 89 * Get a log_item_desc to point at the new item.
90 */ 90 */
91 (void) xfs_trans_add_item(tp, (xfs_log_item_t*)(iip)); 91 xfs_trans_add_item(tp, &iip->ili_item);
92 92
93 xfs_trans_inode_broot_debug(ip); 93 xfs_trans_inode_broot_debug(ip);
94 94
@@ -144,17 +144,12 @@ xfs_trans_log_inode(
144 xfs_inode_t *ip, 144 xfs_inode_t *ip,
145 uint flags) 145 uint flags)
146{ 146{
147 xfs_log_item_desc_t *lidp;
148
149 ASSERT(ip->i_transp == tp); 147 ASSERT(ip->i_transp == tp);
150 ASSERT(ip->i_itemp != NULL); 148 ASSERT(ip->i_itemp != NULL);
151 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); 149 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
152 150
153 lidp = xfs_trans_find_item(tp, (xfs_log_item_t*)(ip->i_itemp));
154 ASSERT(lidp != NULL);
155
156 tp->t_flags |= XFS_TRANS_DIRTY; 151 tp->t_flags |= XFS_TRANS_DIRTY;
157 lidp->lid_flags |= XFS_LID_DIRTY; 152 ip->i_itemp->ili_item.li_desc->lid_flags |= XFS_LID_DIRTY;
158 153
159 /* 154 /*
160 * Always OR in the bits from the ili_last_fields field. 155 * Always OR in the bits from the ili_last_fields field.