#define trace_xfs_alloc_small_error(a) ((void) 0)
#define trace_xfs_alloc_vextent_badargs(a) ((void) 0)
#define trace_xfs_alloc_vextent_skip_deadlock(...) ((void) 0)
+#define trace_xfs_alloc_vextent_finish(...) ((void) 0)
+#define trace_xfs_alloc_vextent_this_ag(...) ((void) 0)
+#define trace_xfs_alloc_vextent_first_ag(...) ((void) 0)
+#define trace_xfs_alloc_vextent_start_ag(...) ((void) 0)
+#define trace_xfs_alloc_vextent_near_bno(...) ((void) 0)
+#define trace_xfs_alloc_vextent_exact_bno(...) ((void) 0)
#define trace_xfs_alloc_vextent_nofix(a) ((void) 0)
#define trace_xfs_alloc_vextent_noagbp(a) ((void) 0)
#define trace_xfs_alloc_vextent_loopfailed(a) ((void) 0)
XFS_STATS_INC(mp, xs_allocx);
XFS_STATS_ADD(mp, xs_allocb, args->len);
+ trace_xfs_alloc_vextent_finish(args);
+
out_drop_perag:
if (drop_perag && args->pag) {
xfs_perag_rele(args->pag);
args->agno = agno;
args->agbno = 0;
+
+ trace_xfs_alloc_vextent_this_ag(args);
+
error = xfs_alloc_vextent_check_args(args, XFS_AGB_TO_FSB(mp, agno, 0),
&minimum_agno);
if (error) {
args->agno = NULLAGNUMBER;
args->agbno = NULLAGBLOCK;
+
+ trace_xfs_alloc_vextent_first_ag(args);
+
error = xfs_alloc_vextent_check_args(args, target, &minimum_agno);
if (error) {
if (error == -ENOSPC)
args->agno = NULLAGNUMBER;
args->agbno = NULLAGBLOCK;
+
+ trace_xfs_alloc_vextent_start_ag(args);
+
error = xfs_alloc_vextent_check_args(args, target, &minimum_agno);
if (error) {
if (error == -ENOSPC)
args->agno = XFS_FSB_TO_AGNO(mp, target);
args->agbno = XFS_FSB_TO_AGBNO(mp, target);
+
+ trace_xfs_alloc_vextent_near_bno(args);
+
error = xfs_alloc_vextent_check_args(args, target, &minimum_agno);
if (error) {
if (error == -ENOSPC)
args->agno = XFS_FSB_TO_AGNO(mp, target);
args->agbno = XFS_FSB_TO_AGBNO(mp, target);
+
+ trace_xfs_alloc_vextent_exact_bno(args);
+
error = xfs_alloc_vextent_check_args(args, target, &minimum_agno);
if (error) {
if (error == -ENOSPC)