Commit e2663443 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Carlos Maiolino
Browse files

xfs: improve the iclog space assert in xlog_write_iovec



We need enough space for the length we copy into the iclog, not just
some space, so tighten up the check a bit.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent 865970d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1891,7 +1891,7 @@ xlog_write_iovec(
	void			*buf,
	uint32_t		buf_len)
{
	ASSERT(xlog_write_space_left(data) > 0);
	ASSERT(xlog_write_space_left(data) >= buf_len);
	ASSERT(data->log_offset % sizeof(int32_t) == 0);
	ASSERT(buf_len % sizeof(int32_t) == 0);