]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: set xefi_discard when creating a deferred agfl free log intent item libxfs-5.10-sync-part2_2020-11-16
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 23 Oct 2020 00:03:18 +0000 (17:03 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 16 Nov 2020 17:30:04 +0000 (09:30 -0800)
commit9b458e2b4b39e67a12f762f74d066650d3160319
tree3285efcb720c01d9e82fde47fe11d3d1a8fb5ba5
parent17899591ce61f2b31db010cb478d0875720b31da
xfs: set xefi_discard when creating a deferred agfl free log intent item

Make sure that we actually initialize xefi_discard when we're scheduling
a deferred free of an AGFL block.  This was (eventually) found by the
UBSAN while I was banging on realtime rmap problems, but it exists in
the upstream codebase.

Fixes: fcb762f5de2e ("xfs: add bmapi nodiscard flag")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
libxfs/xfs_alloc.c
libxfs/xfs_bmap.h