]> 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-10-26
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, 26 Oct 2020 23:26:22 +0000 (16:26 -0700)
commit9cff9e8ae631228d6800732e9ef6a0c88c2c909e
treeb9447834c03e88ff4e635321bc911efb1e2c150a
parent3f80dcecdcbafc735ced9cc49a59e5077878a0a2
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