]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: don't set XFS_BTCUR_BPRV_WASDEL in xfs_bunmapi
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Nov 2017 04:08:59 +0000 (22:08 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:08:59 +0000 (22:08 -0600)
commite9fa15aa053d11a13f90d324338decdaa69f556c
tree8164386653c226cec42565d428fab15da09b9081
parent99a663c1d4b552301e0bcf6b09ad32ade82314bd
xfs: don't set XFS_BTCUR_BPRV_WASDEL in xfs_bunmapi

Source kernel commit: b213d69293cf003e6f0c63adfee6fcc70e3afee6

The XFS_BTCUR_BPRV_WASDEL flag is supposed to indicate that we are
converting a delayed allocation to a real one, which isn't the case
in xfs_bunmapi.  Setting it could theoretically lead to misaccounting
here, but it's unlikely that we ever hit it in practice.

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c