Commit 9d403261 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix a shift greater than type size

Found by UBSAN
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5ea037d0
......@@ -479,7 +479,7 @@ int bch2_inode_create(struct btree_trans *trans,
u64 min, max, start, *hint;
int ret;
unsigned cpu = raw_smp_processor_id();
u64 cpu = raw_smp_processor_id();
unsigned bits = (c->opts.inodes_32bit
? 31 : 63) - c->inode_shard_bits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment