File tree Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 37
37
#include "xfs_icache.h"
38
38
#include "xfs_iomap.h"
39
39
#include "xfs_health.h"
40
+ #include "xfs_bmap_item.h"
40
41
41
42
struct kmem_cache * xfs_bmap_intent_cache ;
42
43
@@ -6198,10 +6199,7 @@ __xfs_bmap_add(
6198
6199
bi -> bi_whichfork = whichfork ;
6199
6200
bi -> bi_bmap = * bmap ;
6200
6201
6201
- trace_xfs_bmap_defer (bi );
6202
-
6203
- xfs_bmap_update_get_group (tp -> t_mountp , bi );
6204
- xfs_defer_add (tp , & bi -> bi_list , & xfs_bmap_update_defer_type );
6202
+ xfs_bmap_defer_add (tp , bi );
6205
6203
return 0 ;
6206
6204
}
6207
6205
Original file line number Diff line number Diff line change @@ -245,9 +245,6 @@ struct xfs_bmap_intent {
245
245
struct xfs_bmbt_irec bi_bmap ;
246
246
};
247
247
248
- void xfs_bmap_update_get_group (struct xfs_mount * mp ,
249
- struct xfs_bmap_intent * bi );
250
-
251
248
int xfs_bmap_finish_one (struct xfs_trans * tp , struct xfs_bmap_intent * bi );
252
249
void xfs_bmap_map_extent (struct xfs_trans * tp , struct xfs_inode * ip ,
253
250
struct xfs_bmbt_irec * imap );
Original file line number Diff line number Diff line change 25
25
#include "xfs_log_priv.h"
26
26
#include "xfs_log_recover.h"
27
27
#include "xfs_ag.h"
28
+ #include "xfs_trace.h"
28
29
29
30
struct kmem_cache * xfs_bui_cache ;
30
31
struct kmem_cache * xfs_bud_cache ;
@@ -316,7 +317,7 @@ xfs_bmap_update_create_done(
316
317
}
317
318
318
319
/* Take a passive ref to the AG containing the space we're mapping. */
319
- void
320
+ static inline void
320
321
xfs_bmap_update_get_group (
321
322
struct xfs_mount * mp ,
322
323
struct xfs_bmap_intent * bi )
@@ -335,6 +336,18 @@ xfs_bmap_update_get_group(
335
336
bi -> bi_pag = xfs_perag_intent_get (mp , agno );
336
337
}
337
338
339
+ /* Add this deferred BUI to the transaction. */
340
+ void
341
+ xfs_bmap_defer_add (
342
+ struct xfs_trans * tp ,
343
+ struct xfs_bmap_intent * bi )
344
+ {
345
+ trace_xfs_bmap_defer (bi );
346
+
347
+ xfs_bmap_update_get_group (tp -> t_mountp , bi );
348
+ xfs_defer_add (tp , & bi -> bi_list , & xfs_bmap_update_defer_type );
349
+ }
350
+
338
351
/* Release a passive AG ref after finishing mapping work. */
339
352
static inline void
340
353
xfs_bmap_update_put_group (
Original file line number Diff line number Diff line change @@ -68,4 +68,8 @@ struct xfs_bud_log_item {
68
68
extern struct kmem_cache * xfs_bui_cache ;
69
69
extern struct kmem_cache * xfs_bud_cache ;
70
70
71
+ struct xfs_bmap_intent ;
72
+
73
+ void xfs_bmap_defer_add (struct xfs_trans * tp , struct xfs_bmap_intent * bi );
74
+
71
75
#endif /* __XFS_BMAP_ITEM_H__ */
You can’t perform that action at this time.
0 commit comments