summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_refcount_item.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-11-30 12:06:08 -0800
committerDarrick J. Wong <djwong@kernel.org>2023-12-06 18:45:16 -0800
commitb28852a5bd08654634e4e32eb072fba14c5fae26 (patch)
tree7c7b11121ed59b8d06a6af8f33b3a421dbbd2fbf /fs/xfs/xfs_refcount_item.c
parent3e0958be2156d90ef908a1a547b4e27a3ec38da9 (diff)
downloadlinux-b28852a5bd08654634e4e32eb072fba14c5fae26.tar.gz
linux-b28852a5bd08654634e4e32eb072fba14c5fae26.tar.bz2
linux-b28852a5bd08654634e4e32eb072fba14c5fae26.zip
xfs: hoist xfs_trans_add_item calls to defer ops functions
Remove even more repeated boilerplate. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_refcount_item.c')
-rw-r--r--fs/xfs/xfs_refcount_item.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/xfs_refcount_item.c b/fs/xfs/xfs_refcount_item.c
index 01d16e795068..a66bb6aa2e5d 100644
--- a/fs/xfs/xfs_refcount_item.c
+++ b/fs/xfs/xfs_refcount_item.c
@@ -240,7 +240,6 @@ xfs_trans_get_cud(
cudp->cud_cuip = cuip;
cudp->cud_format.cud_cui_id = cuip->cui_format.cui_id;
- xfs_trans_add_item(tp, &cudp->cud_item);
return cudp;
}
@@ -315,7 +314,6 @@ xfs_refcount_update_create_intent(
ASSERT(count > 0);
- xfs_trans_add_item(tp, &cuip->cui_item);
if (sort)
list_sort(mp, items, xfs_refcount_update_diff_items);
list_for_each_entry(ri, items, ri_list)
@@ -546,7 +544,6 @@ xfs_cui_item_relog(
cuip = xfs_cui_init(tp->t_mountp, count);
memcpy(cuip->cui_format.cui_extents, pmap, count * sizeof(*pmap));
atomic_set(&cuip->cui_next_extent, count);
- xfs_trans_add_item(tp, &cuip->cui_item);
return &cuip->cui_item;
}