xfs: block deltas in xfs_trans_unreserve_and_mod_sb must be positive
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 11:20:11 +0000 (13:20 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 12:30:47 +0000 (18:00 +0530)
commit5e1e4d4fc79c6e5f80864860208ceae27dead8a2
tree048113a1b23b813b973ccff63589a743863d7961
parentde37dbd0ccc6933fbf4bd7b3ccbc5ac640e80b28
xfs: block deltas in xfs_trans_unreserve_and_mod_sb must be positive

And to make that more clear, rearrange the code a bit and add asserts
and a comment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_trans.c