xfs: re-order initial space accounting checks in xlog_write
authorDave Chinner <dchinner@redhat.com>
Thu, 26 Mar 2020 01:18:21 +0000 (18:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 27 Mar 2020 15:32:53 +0000 (08:32 -0700)
commit9590e9c68449055c97e954118699bc9d470d7e30
treefdc13e76a6eb3aa5b30aab0eb749a7514a57ee83
parent7ec949212dba350f1dbc339d2db844db68b39725
xfs: re-order initial space accounting checks in xlog_write

Commit and unmount records records do not need start records to be
written, so rearrange the logic in xlog_write() to remove the need
to check for XLOG_TIC_INITED to determine if we should account for
the space used by a start record.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c