xfs: embed the xlog_op_header in the unmount record
authorDave Chinner <dchinner@redhat.com>
Thu, 21 Apr 2022 00:34:04 +0000 (10:34 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 21 Apr 2022 00:34:04 +0000 (10:34 +1000)
commitffa04c1f2cb047d6a44c3570bfb6e1ca5ba7f489
treea9f1340cfe8d5995a6345f0fec3197c2ae5c786e
parent6eaed95e21a0872692246e63cb45542d0f62c922
xfs: embed the xlog_op_header in the unmount record

Remove another case where xlog_write() has to prepend an opheader to
a log transaction. The unmount record + ophdr is smaller than the
minimum amount of space guaranteed to be free in an iclog (2 *
sizeof(ophdr)) and so we don't have to care about an unmount record
being split across 2 iclogs.

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