diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-10-16 09:21:37 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-10-17 16:23:49 -0700 |
commit | ddd98076d5c075c8a6c49d9e6e8ee12844137f23 (patch) | |
tree | a04e2497efad7a430cc574e32d98f92538c7fbae /scripts/generate_rust_analyzer.py | |
parent | c2988eb5cff75c02bc57e02c323154aa08f55b78 (diff) |
xfs: fix units conversion error in xfs_bmap_del_extent_delay
The unit conversions in this function do not make sense. First we
convert a block count to bytes, then divide that bytes value by
rextsize, which is in blocks, to get an rt extent count. You can't
divide bytes by blocks to get a (possibly multiblock) extent value.
Fortunately nobody uses delalloc on the rt volume so this hasn't
mattered.
Fixes: fa5c836ca8eb5 ("xfs: refactor xfs_bunmapi_cow")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions