]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: split XFS_BMAPI_DELALLOC handling from xfs_bmapi_write
authorChristoph Hellwig <hch@lst.de>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
commit330a35fe5d945a9860f01e207a4eb613d7b7c958
tree28890ff7efa29982b1bd1ee422315dd8343941b8
parentee622798b0c724a0c419298526b61a7b308bf7f0
xfs: split XFS_BMAPI_DELALLOC handling from xfs_bmapi_write

Source kernel commit: d8ae82e394bd5d836a32864b1ca22757ef8bb8ee

Delalloc conversion has traditionally been part of our function to
allocate blocks on disk (first xfs_bmapi, then xfs_bmapi_write), but
delalloc conversion is a little special as we really do not want
to allocate blocks over holes, for which we don't have reservations.

Split the delalloc conversions into a separate helper to keep the
code simple and structured.

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_bmap.c
libxfs/xfs_bmap.h