summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue_types.h
diff options
context:
space:
mode:
authorYingjie Gao <gaoyingjie@uniontech.com>2026-06-04 20:03:17 +0800
committerCarlos Maiolino <cem@kernel.org>2026-06-09 09:14:41 +0200
commit0a5213bbff62b51c7d4999ac8c7e11ea57d00d45 (patch)
treec2db03f920b0915ef39510c9151a90ac0fa1173c /include/linux/timerqueue_types.h
parent610c08cbe79bb9d86f82c5834075b4719280dd8d (diff)
xfs: fix exchmaps reservation limit check
xfs_exchmaps_estimate_overhead() adds the bmbt and rmapbt overhead to a local resblks variable, but the final UINT_MAX check still tests req->resblks. That is the reservation value from before the overhead was added. The computed value is stored back in req->resblks and later passed to xfs_trans_alloc(), whose block reservation argument is unsigned int. Check the computed reservation so the existing limit applies to the value that will be used. Fixes: 966ceafc7a43 ("xfs: create deferred log items for file mapping exchanges") Cc: stable@vger.kernel.org # v6.10 Signed-off-by: Yingjie Gao <gaoyingjie@uniontech.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions