]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3a68d9c7a9527418ca1f4f46382e029fc351cbe
treea323688ef02a04a54eba2d8442fc43bc66cdafa1
parent53c734933765afc046d37d49cefdd199684eb6ac
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