]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: extend transaction reservations for parent attributes
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 29 Jul 2024 23:22:47 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:02 +0000 (17:01 -0700)
commit22e2e5e5a3b3b2ab24cc01290b2d0a12be9a0741
tree0898d3714a90a7967f1b5de5aaca63dd0eb81fc7
parent564c22ccb55a0d9ab7572ebf544c862fe2208fdd
xfs: extend transaction reservations for parent attributes

Source kernel commit: 7dba4a5fe1c5cdf0859830380c52f29295cbf345

We need to add, remove or modify parent pointer attributes during
create/link/unlink/rename operations atomically with the dirents in the
parent directories being modified. This means they need to be modified
in the same transaction as the parent directories, and so we need to add
the required space for the attribute modifications to the transaction
reservations.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: fix indenting errors, adjust for new log format]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/libxfs_priv.h
libxfs/xfs_trans_resv.c