We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9419092 commit b82a5c4Copy full SHA for b82a5c4
fs/xfs/libxfs/xfs_bmap.c
@@ -3494,8 +3494,10 @@ xfs_bmap_btalloc_at_eof(
3494
if (!caller_pag)
3495
args->pag = xfs_perag_get(mp, XFS_FSB_TO_AGNO(mp, ap->blkno));
3496
error = xfs_alloc_vextent_exact_bno(args, ap->blkno);
3497
- if (!caller_pag)
+ if (!caller_pag) {
3498
xfs_perag_put(args->pag);
3499
+ args->pag = NULL;
3500
+ }
3501
if (error)
3502
return error;
3503
@@ -3505,7 +3507,6 @@ xfs_bmap_btalloc_at_eof(
3505
3507
* Exact allocation failed. Reset to try an aligned allocation
3506
3508
* according to the original allocation specification.
3509
*/
- args->pag = NULL;
3510
args->alignment = stripe_align;
3511
args->minlen = nextminlen;
3512
args->minalignslop = 0;
0 commit comments