]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: clean up calculation of LR header blocks
authorGao Xiang <hsiangkao@redhat.com>
Tue, 22 Sep 2020 16:41:06 +0000 (09:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 23 Sep 2020 16:24:17 +0000 (09:24 -0700)
commit8585e2875c68a18e49a552101671bf5680b08ed5
tree8775cccc27bdeba0eedc87f82d99cd2ff44cac7f
parentf7008402d6228c6da3cb6816a0fab813f1cdc2c0
xfs: clean up calculation of LR header blocks

Let's use DIV_ROUND_UP() to calculate log record header
blocks as what did in xlog_get_iclog_buffer_size() and
wrap up a common helper for log recovery.

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Gao Xiang <hsiangkao@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
fs/xfs/xfs_log_recover.c