bcachefs: Use mmap() instead of vmalloc_exec() in userspace
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 24 Apr 2021 04:38:16 +0000 (00:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:02 +0000 (17:09 -0400)
commit65c0601a329580f6a016298f7148305288b7d719
tree79d4f2942092b9ec89c9d56f838ee7c13e7ba442
parent537c32f5212396751bf39b10d71af60af32dc257
bcachefs: Use mmap() instead of vmalloc_exec() in userspace

Calling mmap() directly is much better than malloc() then mprotect(), we
end up with much less address space fragmentation.

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