]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: add a xfs_agino_to_ino helper
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Sep 2024 20:40:21 +0000 (13:40 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Oct 2024 23:29:05 +0000 (16:29 -0700)
commitcd5e744f99599ca92d14bc9c9b5e8049c0041f95
treee31f0c5c1d76d77b7a4294cbe3aad066ddf89592
parentee13d63a775e15aafa8f4bf9bb5d18840da0ff8c
xfs: add a xfs_agino_to_ino helper

Add a helpers to convert an agino to an ino 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 <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_ag.h
libxfs/xfs_ialloc.c