]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: use the xfs_da_args owner field to set new dir/attr block owner
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:37 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:00 +0000 (17:01 -0700)
commitda833baeb58db529fb76896ca7f3d8f9fbb7bfc3
treeeea4c3701bc0c98244382f430a7077fbc3448e36
parent0e232547f65c108857e1b0945fc4b15fa329e1f1
xfs: use the xfs_da_args owner field to set new dir/attr block owner

Source kernel commit: 17a85dc64ae0804d33a2293686fc987a830a462d

When we're creating leaf, data, freespace, or dabtree blocks for
directories and xattrs, use the explicit owner field (instead of the
xfs_inode) to set the owner field.  This will enable online repair to
construct replacement data structures in a temporary file without having
to change the owner fields prior to swapping the new and old structures.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_attr_leaf.c
libxfs/xfs_attr_remote.c
libxfs/xfs_da_btree.c
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c