xfs: complain if anyone tries to create a too-large buffer log item
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 8 Jan 2020 00:12:24 +0000 (16:12 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 16:07:23 +0000 (08:07 -0800)
commitc3d5f0c2fb85351a1017b23692d3d6ab561b1f32
tree98a405563d1d9789b2529b7f2e19abdb6df7e91e
parentc64dd49b5112215730db8a2c3ac38c2e03b09e73
xfs: complain if anyone tries to create a too-large buffer log item

Complain if someone calls xfs_buf_item_init on a buffer that is larger
than the dirty bitmap can handle, or tries to log a region that's past
the end of the dirty bitmap.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_buf_item.c