bcachefs: Fix 32 bit build
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 23 Feb 2022 16:46:34 +0000 (11:46 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:25 +0000 (17:09 -0400)
commit82697a10dd4b9a6f7c6f98a525778d032db2f2fb
tree3c170b18bbfc5cdcdcb5253ac390a0c0ee1eecca
parent78a8f36280e178df4e78382c82a20e3af1704e65
bcachefs: Fix 32 bit build

vstruct_bytes() was returning a u64 - it should be a size_t, the corect
type for the size of anything that fits in memory.

Also replace a 64 bit divide with div_u64().

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal_io.c
fs/bcachefs/quota.c
fs/bcachefs/super-io.c
fs/bcachefs/vstructs.h