mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
bcachefs: Fix integer overflow on trans->nr_updates
We can't have more updates than paths, so btree_path_idx_t is the correct type to use. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
f05a0b9c73
commit
6f719cbe0c
1 changed files with 1 additions and 1 deletions
|
@ -477,8 +477,8 @@ struct btree_trans {
|
|||
btree_path_idx_t nr_sorted;
|
||||
btree_path_idx_t nr_paths;
|
||||
btree_path_idx_t nr_paths_max;
|
||||
btree_path_idx_t nr_updates;
|
||||
u8 fn_idx;
|
||||
u8 nr_updates;
|
||||
u8 lock_must_abort;
|
||||
bool lock_may_not_fail:1;
|
||||
bool srcu_held:1;
|
||||
|
|
Loading…
Reference in a new issue