xfs: cleanup xlog_get_iclog_buffer_size
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:20 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:20 +0000 (19:27 -0700)
commit4f62282a369642b992771e78273a023769bf0d9a
treea323688ef02a04a54eba2d8442fc43bc66cdafa1
parent76ce9823acf32ce446d1244a6cc01d4796492e31
xfs: cleanup xlog_get_iclog_buffer_size

We don't really need all the messy branches in the function, as it
really does three things, out of which 2 are common for all branches:

 1) set up mount point log buffer size and count values if not already
    done from mount options
 2) calculate the number of log headers
 3) set up all the values in struct xlog based on the above

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