]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: move extent zeroing to xfs_bmapi_allocate
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Jan 2020 22:13:33 +0000 (17:13 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Jan 2020 22:13:33 +0000 (17:13 -0500)
commitc3a24cdeca82608ef2ac0a61d0de124b8e8ba1be
tree5cd065233574d2e11be040a21a825d219f79f114
parent2ac7663ab1e4c3b0f753e0b50dc8adf18a9bc1ca
xfs: move extent zeroing to xfs_bmapi_allocate

Source kernel commit: fd638f1de1f3f736ea4debb3582999ea95506e0a

Move the extent zeroing case there for the XFS_BMAPI_ZERO flag outside
the low-level allocator and into xfs_bmapi_allocate, where is still
is in transaction context, but outside the very lowlevel code where
it doesn't belong.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_bmap.c