]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: account for null transactions in bunmapi
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Dec 2017 02:03:53 +0000 (18:03 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 14 Dec 2017 17:20:10 +0000 (09:20 -0800)
commit2811c46e9e359e24768acd51e09d204aa59828df
tree9f071dde548f79a51ccbd2ba8b9bd764bbb6e493
parent8734210e31da14c7d39397db7f9cbe0a986af6b0
xfs: account for null transactions in bunmapi

In ed8cf396d69918 ("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>
fs/xfs/libxfs/xfs_bmap.c