xfs: log proper length of btree block in scrub/repair
authorEric Sandeen <sandeen@redhat.com>
Wed, 28 Aug 2019 00:35:12 +0000 (17:35 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 28 Aug 2019 15:31:02 +0000 (08:31 -0700)
commit7f313eda8fcc6a250803abb1aef3d6dc5c32f9ad
tree26c1f9695c6672edd1520435838cd178223e468d
parentffb5696f7555e44c04b7c1212fcd83ddedc43498
xfs: log proper length of btree block in scrub/repair

xfs_trans_log_buf() takes a final argument of the last byte to
log in the buffer; b_length is in basic blocks, so this isn't
the correct last byte.  Fix it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
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/scrub/repair.c