]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add a xfs_agino_to_ino helper
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Nov 2024 21:14:12 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:23 +0000 (18:01 -0800)
commitef7499e4a071c48e2fd3b30966aa52c02025246a
treedd0f6d5285681b0dd40161338f27dd15a7d08571
parent25e0d55968c78446bab1ab39ed2aeb2a44b311a6
xfs: add a xfs_agino_to_ino helper

Source kernel commit: 6abd82ab6ea48430c13caebaad436ca6b5f2c34d

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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_ag.h
libxfs/xfs_ialloc.c