]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: set XBF_DONE on newly formatted btree block that are ready for writing
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:37 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:25 +0000 (14:06 -0700)
commit6feab85fb71283e10c46b0961551df9282b5082b
tree09116b98cbc54378f8a0d1bdfd219290db9fbbf7
parent152e824401d03aff17bd3266ccfecd23a7238fef
xfs: set XBF_DONE on newly formatted btree block that are ready for writing

Source kernel commit: c1e0f8e6fb060b23b6f1b82eb4265983f7d271f8

The btree bulkloading code calls xfs_buf_delwri_queue_here when it has
finished formatting a new btree block and wants to queue it to be
written to disk.  Once the new btree root has been committed, the blocks
(and hence the buffers) will be accessible to the rest of the
filesystem.  Mark each new buffer as DONE when adding it to the delwri
list so that the next btree traversal can skip reloading the contents
from disk.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_btree_staging.c