aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_alloc.c')
-rw-r--r--fs/xfs/xfs_alloc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c
index 275b1f4f9430..8c5422abd5dd 100644
--- a/fs/xfs/xfs_alloc.c
+++ b/fs/xfs/xfs_alloc.c
@@ -2270,7 +2270,7 @@ xfs_alloc_vextent(
2270 * These three force us into a single a.g. 2270 * These three force us into a single a.g.
2271 */ 2271 */
2272 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); 2272 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno);
2273 down_read(&mp->m_peraglock); 2273 anon_down_read(&mp->m_peraglock);
2274 args->pag = &mp->m_perag[args->agno]; 2274 args->pag = &mp->m_perag[args->agno];
2275 args->minleft = 0; 2275 args->minleft = 0;
2276 error = xfs_alloc_fix_freelist(args, 0); 2276 error = xfs_alloc_fix_freelist(args, 0);
@@ -2280,14 +2280,14 @@ xfs_alloc_vextent(
2280 goto error0; 2280 goto error0;
2281 } 2281 }
2282 if (!args->agbp) { 2282 if (!args->agbp) {
2283 up_read(&mp->m_peraglock); 2283 anon_up_read(&mp->m_peraglock);
2284 trace_xfs_alloc_vextent_noagbp(args); 2284 trace_xfs_alloc_vextent_noagbp(args);
2285 break; 2285 break;
2286 } 2286 }
2287 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); 2287 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno);
2288 if ((error = xfs_alloc_ag_vextent(args))) 2288 if ((error = xfs_alloc_ag_vextent(args)))
2289 goto error0; 2289 goto error0;
2290 up_read(&mp->m_peraglock); 2290 anon_up_read(&mp->m_peraglock);
2291 break; 2291 break;
2292 case XFS_ALLOCTYPE_START_BNO: 2292 case XFS_ALLOCTYPE_START_BNO:
2293 /* 2293 /*
@@ -2339,7 +2339,7 @@ xfs_alloc_vextent(
2339 * Loop over allocation groups twice; first time with 2339 * Loop over allocation groups twice; first time with
2340 * trylock set, second time without. 2340 * trylock set, second time without.
2341 */ 2341 */
2342 down_read(&mp->m_peraglock); 2342 anon_down_read(&mp->m_peraglock);
2343 for (;;) { 2343 for (;;) {
2344 args->pag = &mp->m_perag[args->agno]; 2344 args->pag = &mp->m_perag[args->agno];
2345 if (no_min) args->minleft = 0; 2345 if (no_min) args->minleft = 0;
@@ -2401,7 +2401,7 @@ xfs_alloc_vextent(
2401 } 2401 }
2402 } 2402 }
2403 } 2403 }
2404 up_read(&mp->m_peraglock); 2404 anon_up_read(&mp->m_peraglock);
2405 if (bump_rotor || (type == XFS_ALLOCTYPE_ANY_AG)) { 2405 if (bump_rotor || (type == XFS_ALLOCTYPE_ANY_AG)) {
2406 if (args->agno == sagno) 2406 if (args->agno == sagno)
2407 mp->m_agfrotor = (mp->m_agfrotor + 1) % 2407 mp->m_agfrotor = (mp->m_agfrotor + 1) %
@@ -2429,7 +2429,7 @@ xfs_alloc_vextent(
2429 } 2429 }
2430 return 0; 2430 return 0;
2431error0: 2431error0:
2432 up_read(&mp->m_peraglock); 2432 anon_up_read(&mp->m_peraglock);
2433 return error; 2433 return error;
2434} 2434}
2435 2435
@@ -2454,7 +2454,7 @@ xfs_free_extent(
2454 args.agno = XFS_FSB_TO_AGNO(args.mp, bno); 2454 args.agno = XFS_FSB_TO_AGNO(args.mp, bno);
2455 ASSERT(args.agno < args.mp->m_sb.sb_agcount); 2455 ASSERT(args.agno < args.mp->m_sb.sb_agcount);
2456 args.agbno = XFS_FSB_TO_AGBNO(args.mp, bno); 2456 args.agbno = XFS_FSB_TO_AGBNO(args.mp, bno);
2457 down_read(&args.mp->m_peraglock); 2457 anon_down_read(&args.mp->m_peraglock);
2458 args.pag = &args.mp->m_perag[args.agno]; 2458 args.pag = &args.mp->m_perag[args.agno];
2459 if ((error = xfs_alloc_fix_freelist(&args, XFS_ALLOC_FLAG_FREEING))) 2459 if ((error = xfs_alloc_fix_freelist(&args, XFS_ALLOC_FLAG_FREEING)))
2460 goto error0; 2460 goto error0;
@@ -2465,7 +2465,7 @@ xfs_free_extent(
2465#endif 2465#endif
2466 error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); 2466 error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0);
2467error0: 2467error0:
2468 up_read(&args.mp->m_peraglock); 2468 anon_up_read(&args.mp->m_peraglock);
2469 return error; 2469 return error;
2470} 2470}
2471 2471