]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bcachefs_metadata_version_directory_size
authorHongbo Li <lihongbo22@huawei.com>
Tue, 7 Jan 2025 13:18:41 +0000 (13:18 +0000)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 13 Jan 2025 19:58:38 +0000 (14:58 -0500)
commitc72deb03ff0426596c69c294afa1572d2748c589
treec8ad677227672ed06dc4e868409de368c5a8a324
parente614a6c52d32c9c7ff545ca842eb2de4aeb1d2d9
bcachefs: bcachefs_metadata_version_directory_size

This adds another metadata version for accounting directory size.
For the new version of the filesystem, when new subdirectory items
are created or deleted, the parent directory's size will change
accordingly. For the old version of the existed file system, running
fsck will automatically upgrade the metadata version, and it will
do the check and recalculationg of the directory size.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/fsck.c
fs/bcachefs/sb-downgrade.c
fs/bcachefs/sb-errors_format.h