bcachefs: Improved inode create optimization
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 3 Nov 2020 04:51:33 +0000 (23:51 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:46 +0000 (17:08 -0400)
commitb5e8a6992fb1195cb58cb79461ef50f474c27608
tree36f50306eb535b2b1860fabaf41e87fc87a24a97
parentdf082b3a50e02bb8dfc583cea29ab94ab1a04692
bcachefs: Improved inode create optimization

This shards new inodes into different btree nodes by using the processor
ID for the high bits of the new inode number. Much faster than the
previous inode create optimization - this also helps with sharding in
the other btrees that index by inode number.

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