@@ -243,25 +243,6 @@ xfs_refcount_update_diff_items(
243
243
return ra -> ri_pag -> pag_agno - rb -> ri_pag -> pag_agno ;
244
244
}
245
245
246
- /* Set the phys extent flags for this reverse mapping. */
247
- static void
248
- xfs_trans_set_refcount_flags (
249
- struct xfs_phys_extent * pmap ,
250
- enum xfs_refcount_intent_type type )
251
- {
252
- pmap -> pe_flags = 0 ;
253
- switch (type ) {
254
- case XFS_REFCOUNT_INCREASE :
255
- case XFS_REFCOUNT_DECREASE :
256
- case XFS_REFCOUNT_ALLOC_COW :
257
- case XFS_REFCOUNT_FREE_COW :
258
- pmap -> pe_flags |= type ;
259
- break ;
260
- default :
261
- ASSERT (0 );
262
- }
263
- }
264
-
265
246
/* Log refcount updates in the intent item. */
266
247
STATIC void
267
248
xfs_refcount_update_log_item (
@@ -282,7 +263,18 @@ xfs_refcount_update_log_item(
282
263
pmap = & cuip -> cui_format .cui_extents [next_extent ];
283
264
pmap -> pe_startblock = ri -> ri_startblock ;
284
265
pmap -> pe_len = ri -> ri_blockcount ;
285
- xfs_trans_set_refcount_flags (pmap , ri -> ri_type );
266
+
267
+ pmap -> pe_flags = 0 ;
268
+ switch (ri -> ri_type ) {
269
+ case XFS_REFCOUNT_INCREASE :
270
+ case XFS_REFCOUNT_DECREASE :
271
+ case XFS_REFCOUNT_ALLOC_COW :
272
+ case XFS_REFCOUNT_FREE_COW :
273
+ pmap -> pe_flags |= ri -> ri_type ;
274
+ break ;
275
+ default :
276
+ ASSERT (0 );
277
+ }
286
278
}
287
279
288
280
static struct xfs_log_item *
0 commit comments