]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: account for null transactions in bunmapi
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Jan 2018 19:42:09 +0000 (13:42 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 3 Jan 2018 19:42:09 +0000 (13:42 -0600)
commitdb2cf1d2ffc41b36abeb7603c8342f18067cef30
tree915cceffcff1e96da36ada161c554cda1d0166e0
parent3fbc4d7df3d9f9951589394873bd250b1d573347
xfs: account for null transactions in bunmapi

Source kernel commit: 8c57b88637d78a723e0854fc3d06c6d4c31a1e0c

In e1a4e37cc7b665 ("xfs: try to avoid blowing out the transaction
reservation when bunmaping a shared extent"), we try to constrain the
amount of real extents we unmap from the data fork in a given call so
that we don't blow out transaction reservations.

However, not all bunmapi operations require a transaction -- if we're
only removing a delalloc extent, no transaction is needed, so we have to
code against that.

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