]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: move extent zeroing to xfs_bmapi_allocate
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Oct 2019 19:25:00 +0000 (12:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Nov 2019 18:22:30 +0000 (10:22 -0800)
commitfd638f1de1f3f736ea4debb3582999ea95506e0a
tree1b7052433849ce6441b1da1bbe4d1627df1e07a6
parentbe6cacbeea8c562a06e9a03c95e3fdee065d1b7b
xfs: move extent zeroing to xfs_bmapi_allocate

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>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/xfs_bmap_util.c