]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add xfs_verify_agino_or_null helper
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 May 2019 22:00:27 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:27 +0000 (18:00 -0400)
commit7a425ea821dfbc5515f0fd29e803205b823e3615
tree8f481ef92a4d015685ae915627bfa49ed2202eb0
parentbbbbfd0c708ba9f14ec3ada6098d0b6ccd6dc8a9
xfs: add xfs_verify_agino_or_null helper

Source kernel commit: 7d36c19538d38f9ff6b93d2a3d23ee879b076dc6

Add a new helper to check that a per-AG inode pointer is either null or
points somewhere valid within that AG.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_inode_buf.c
libxfs/xfs_types.c
libxfs/xfs_types.h