mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
865970d49a
commit
e2663443da
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user