bcachefs: Build fixes for 32bit x86
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 5 Nov 2020 17:16:05 +0000 (12:16 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:46 +0000 (17:08 -0400)
commitb735d73a00d5d9f5652a299146d518b7eea47b7b
tree498348ecf29adaada91d6b5b1784aea71f18d923
parentb5e8a6992fb1195cb58cb79461ef50f474c27608
bcachefs: Build fixes for 32bit x86

PAGE_SIZE and size_t are not unsigned longs on 32 bit, annoying...

also switch to atomic64_cmpxchg instead of cmpxchg() for
journal_seq_copy, as atomic64_cmpxchg has a fallback that uses spinlocks
for when it's not supported.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/ec.c
fs/bcachefs/fs.c
fs/bcachefs/io.c