xfs: validate explicit directory free block owners
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:41 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:58:52 +0000 (14:58 -0700)
commitfe6c9f8e48e0dcbfc3dba17edd88490c8579b34b
treedaefe2fda713eb96b84dbc25533c8a7bce0e415d
parent29b41ce919b7f0b0c2220e088e450d9b132bec36
xfs: validate explicit directory free block owners

Port the existing directory freespace block header checking function to
accept an owner number instead of an xfs_inode, then update the
callsites to use xfs_da_args.owner when possible.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_dir2_leaf.c
fs/xfs/libxfs/xfs_dir2_node.c
fs/xfs/libxfs/xfs_dir2_priv.h
fs/xfs/scrub/dir.c