]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: add a xfs_agino_to_ino helper
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:18:28 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:24 +0000 (13:38 -0800)
commit6abd82ab6ea48430c13caebaad436ca6b5f2c34d
tree9144ba3304f0e661d4ef375f2623f1ba1ca06219
parent856a920ac2bbb2352ef6aa9e1e052f2e80677df7
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>
fs/xfs/libxfs/xfs_ag.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/scrub/agheader_repair.c
fs/xfs/scrub/common.c
fs/xfs/scrub/ialloc.c
fs/xfs/scrub/ialloc_repair.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_iwalk.c
fs/xfs/xfs_log_recover.c