]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add firstblock field to xfs_trans
authorBrian Foster <bfoster@redhat.com>
Fri, 5 Oct 2018 02:35:54 +0000 (21:35 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 5 Oct 2018 02:35:54 +0000 (21:35 -0500)
commit255682d931bb7a9a2f46ff22d013c53904e81c5f
tree33a116bc8e71fc0f08ea8a42164325e92cea5b44
parent78f7b3f185881bcfa97c64c0291bde5ee1972856
xfs: add firstblock field to xfs_trans

Source kernel commit: bba59c5e4b38e160c6be25b2f4fe36ebc84f53df

A firstblock var is typically allocated and initialized along with
xfs_defer_ops structures and passed around independent from the
associated transaction. To facilitate combining the two, add an
optional ->t_firstblock field to xfs_trans that can be used in place
of an on-stack variable.

The firstblock value follows the lifetime of the transaction, so
initialize it on allocation and when a transaction rolls.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trans.h
libxfs/trans.c