]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor delalloc accounting in xfs_bmap_add_extent_delay_real
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Oct 2017 21:16:25 +0000 (14:16 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:21 +0000 (15:38 -0700)
commitfe52e785f9b631b392eb37efd00b26c0538508be
tree1433285ba158e9dd5054c8c451d914a148d881a5
parent2b44822c3985ada782532491d6e34b4f0c06731f
xfs: refactor delalloc accounting in xfs_bmap_add_extent_delay_real

Account for all changes to the delalloc reservation in da_new, and use a
single call xfs_mod_fdblocks to reserve/free blocks, including always
checking for an error.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c