]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde8d2384fb0acdbb1708da1dd023f120f478f903
treefdc13e76a6eb3aa5b30aab0eb749a7514a57ee83
parent2725292c6db8c411f602a448562b7ae0aa835282
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