diff options
| author | Christoph Hellwig <[email protected]> | 2024-11-04 04:18:28 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-11-05 21:38:24 +0000 |
| commit | 856a920ac2bbb2352ef6aa9e1e052f2e80677df7 (patch) | |
| tree | 799a516c3e88fc279f3815be3907759e45569daf /fs/xfs/libxfs/xfs_ialloc_btree.c | |
| parent | xfs: remove the agno argument to xfs_free_ag_extent (diff) | |
| download | kernel-856a920ac2bbb2352ef6aa9e1e052f2e80677df7.tar.gz kernel-856a920ac2bbb2352ef6aa9e1e052f2e80677df7.zip | |
xfs: add xfs_agbno_to_fsb and xfs_agbno_to_daddr helpers
Add helpers to convert an agbno to a daddr or fsbno based on a pag
structure.
This provides a simpler conversion and better type safety compared to the
existing code that passes the mount structure and the agno separately.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_ialloc_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c index 401b42d52af6..3291541ae966 100644 --- a/fs/xfs/libxfs/xfs_ialloc_btree.c +++ b/fs/xfs/libxfs/xfs_ialloc_btree.c @@ -120,7 +120,7 @@ __xfs_inobt_alloc_block( args.resv = resv; error = xfs_alloc_vextent_near_bno(&args, - XFS_AGB_TO_FSB(args.mp, args.pag->pag_agno, sbno)); + xfs_agbno_to_fsb(args.pag, sbno)); if (error) return error; |
