diff options
Diffstat (limited to 'fs/xfs/xfs_alloc_btree.c')
-rw-r--r-- | fs/xfs/xfs_alloc_btree.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/fs/xfs/xfs_alloc_btree.c b/fs/xfs/xfs_alloc_btree.c index 74cadf95d4e8..1603ce595853 100644 --- a/fs/xfs/xfs_alloc_btree.c +++ b/fs/xfs/xfs_alloc_btree.c | |||
@@ -226,8 +226,9 @@ xfs_alloc_delrec( | |||
226 | /* | 226 | /* |
227 | * Put this buffer/block on the ag's freelist. | 227 | * Put this buffer/block on the ag's freelist. |
228 | */ | 228 | */ |
229 | if ((error = xfs_alloc_put_freelist(cur->bc_tp, | 229 | error = xfs_alloc_put_freelist(cur->bc_tp, |
230 | cur->bc_private.a.agbp, NULL, bno))) | 230 | cur->bc_private.a.agbp, NULL, bno, 1); |
231 | if (error) | ||
231 | return error; | 232 | return error; |
232 | /* | 233 | /* |
233 | * Since blocks move to the free list without the | 234 | * Since blocks move to the free list without the |
@@ -549,8 +550,9 @@ xfs_alloc_delrec( | |||
549 | /* | 550 | /* |
550 | * Free the deleting block by putting it on the freelist. | 551 | * Free the deleting block by putting it on the freelist. |
551 | */ | 552 | */ |
552 | if ((error = xfs_alloc_put_freelist(cur->bc_tp, cur->bc_private.a.agbp, | 553 | error = xfs_alloc_put_freelist(cur->bc_tp, |
553 | NULL, rbno))) | 554 | cur->bc_private.a.agbp, NULL, rbno, 1); |
555 | if (error) | ||
554 | return error; | 556 | return error; |
555 | /* | 557 | /* |
556 | * Since blocks move to the free list without the coordination | 558 | * Since blocks move to the free list without the coordination |
@@ -1320,8 +1322,9 @@ xfs_alloc_newroot( | |||
1320 | /* | 1322 | /* |
1321 | * Get a buffer from the freelist blocks, for the new root. | 1323 | * Get a buffer from the freelist blocks, for the new root. |
1322 | */ | 1324 | */ |
1323 | if ((error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_private.a.agbp, | 1325 | error = xfs_alloc_get_freelist(cur->bc_tp, |
1324 | &nbno))) | 1326 | cur->bc_private.a.agbp, &nbno, 1); |
1327 | if (error) | ||
1325 | return error; | 1328 | return error; |
1326 | /* | 1329 | /* |
1327 | * None available, we fail. | 1330 | * None available, we fail. |
@@ -1604,8 +1607,9 @@ xfs_alloc_split( | |||
1604 | * Allocate the new block from the freelist. | 1607 | * Allocate the new block from the freelist. |
1605 | * If we can't do it, we're toast. Give up. | 1608 | * If we can't do it, we're toast. Give up. |
1606 | */ | 1609 | */ |
1607 | if ((error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_private.a.agbp, | 1610 | error = xfs_alloc_get_freelist(cur->bc_tp, |
1608 | &rbno))) | 1611 | cur->bc_private.a.agbp, &rbno, 1); |
1612 | if (error) | ||
1609 | return error; | 1613 | return error; |
1610 | if (rbno == NULLAGBLOCK) { | 1614 | if (rbno == NULLAGBLOCK) { |
1611 | *stat = 0; | 1615 | *stat = 0; |