]> 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)
commitaa8af7c8756ffcae7367b54e38f39fe79cfee8ef
treea277f03bf38a53ced00f0acae7a00afb6807c475
parent3afee5a730b6bcc00bf236636a7386ca509158fc
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