]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: embed the xlog_op_header in the commit record
authorDave Chinner <david@fromorbit.com>
Thu, 21 Apr 2022 00:34:15 +0000 (10:34 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 21 Apr 2022 00:34:15 +0000 (10:34 +1000)
commite9e4aac454715e6c01daaa951fde3aa434b3a209
tree049f98a79b34659ea0d37f6dcb64e0184a19de72
parent5f5ca96990496ba46fa6fd756e8eab8c9b113204
xfs: embed the xlog_op_header in the commit record

Remove the final case where xlog_write() has to prepend an opheader
to a log transaction. Similar to the start record, the commit record
is just an empty opheader with a XLOG_COMMIT_TRANS type, so we can
just make this the payload for the region being passed to
xlog_write() and remove the special handling in xlog_write() for
the commit record.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_cil.c