]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: validate explicit directory free block owners
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:39 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:00 +0000 (17:01 -0700)
commit92244687aaebe7939b9f7e24ed4266f958c878ed
tree55c8caaff89ed9eb1180c07897855ba5b6fa07a6
parent482abce5724c8cfddb2b34ac960fe183f6b7e5e5
xfs: validate explicit directory free block owners

Source kernel commit: fe6c9f8e48e0dcbfc3dba17edd88490c8579b34b

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>
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dir2_priv.h