bcachefs: Fix encryption path on arm
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 24 May 2022 02:37:01 +0000 (22:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:33 +0000 (17:09 -0400)
commitc346def9af1d3890ee604905fb08d689e8383855
tree90a16410ccc67e14ada6e6822df4f0c9c22b20eb
parent232697ab9ded81d56afa8a2e47edb48deea5f9e6
bcachefs: Fix encryption path on arm

flush_dcache_page() is not a noop on arm, but we were using
virt_to_page() instead of vmalloc_to_page() for an address on the kernel
stack - vmalloc memory, leading to an oops in flush_dcache_page().

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/checksum.c