xfs: factor out iclog size calculation from xlog_sync
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:23 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:23 +0000 (19:27 -0700)
commitdb0a6faf938e9c6060d5ebabf239606b4f79b33c
treee710ea44b74c76b72d21d6fc4f050fb8308a3138
parent5693384805ab2a3d474efccb968e32f9e2edbaf7
xfs: factor out iclog size calculation from xlog_sync

Split out another self-contained bit of code from xlog_sync.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@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