]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor unmount record writing
authorDave Chinner <dchinner@redhat.com>
Thu, 26 Mar 2020 01:18:24 +0000 (18:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 27 Mar 2020 15:32:54 +0000 (08:32 -0700)
commitf51434ae29d2fdfcb35bea684dd87767cc3d2426
treea277f03bf38a53ced00f0acae7a00afb6807c475
parentb05b9cbf04b9e7441c6d6ef2befe9958b508c986
xfs: refactor unmount record writing

Separate out the unmount record writing from the rest of the
ticket and log state futzing necessary to make it work. This is
a no-op, just makes the code cleaner and places the unmount record
formatting and writing alongside the commit record formatting and
writing code.

We can also get rid of the ticket flag clearing before the
xlog_write() call because it no longer cares about the state of
XLOG_TIC_INITED.

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