]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bcachefs_metadata_version_persistent_inode_cursors
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 2 Dec 2024 02:44:38 +0000 (21:44 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 10 Jan 2025 04:38:41 +0000 (23:38 -0500)
commitdf448ca355ce84d62993166294f75517e4128598
treea69615a19c0a3ab28ee2ed9b7f6dfc2755642099
parent59c50511f7a8ecded211656425c9b92e31329333
bcachefs: bcachefs_metadata_version_persistent_inode_cursors

Persistent cursors for inode allocation.

A free inodes btree would add substantial overhead to inode allocation
and freeing - a "next num to allocate" cursor is always going to be
faster.

We just need it to be persistent, to avoid scanning the inodes btree
from the start on startup.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 files changed:
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs_format.h
fs/bcachefs/btree_update.c
fs/bcachefs/inode.c
fs/bcachefs/inode.h
fs/bcachefs/inode_format.h
fs/bcachefs/logged_ops.c
fs/bcachefs/logged_ops_format.h
fs/bcachefs/opts.h
fs/bcachefs/sb-errors_format.h
fs/bcachefs/super-io.c
fs/bcachefs/super.c