diff options
| author | Hongbo Li <lihongbo22@huawei.com> | 2025-01-07 13:18:41 +0000 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-01-13 14:58:38 -0500 |
| commit | c72deb03ff0426596c69c294afa1572d2748c589 (patch) | |
| tree | c8ad677227672ed06dc4e868409de368c5a8a324 /fs/bcachefs/sb-errors_format.h | |
| parent | bcachefs: make directory i_size meaningful (diff) | |
| download | linux-c72deb03ff0426596c69c294afa1572d2748c589.tar.gz linux-c72deb03ff0426596c69c294afa1572d2748c589.zip | |
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>
Diffstat (limited to 'fs/bcachefs/sb-errors_format.h')
| -rw-r--r-- | fs/bcachefs/sb-errors_format.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-errors_format.h b/fs/bcachefs/sb-errors_format.h index 80b6d589808b..0b4fe899209b 100644 --- a/fs/bcachefs/sb-errors_format.h +++ b/fs/bcachefs/sb-errors_format.h @@ -313,7 +313,8 @@ enum bch_fsck_flags { x(logged_op_but_clean, 283, FSCK_AUTOFIX) \ x(compression_opt_not_marked_in_sb, 295, FSCK_AUTOFIX) \ x(compression_type_not_marked_in_sb, 296, FSCK_AUTOFIX) \ - x(MAX, 303, 0) + x(directory_size_mismatch, 303, FSCK_AUTOFIX) \ + x(MAX, 304, 0) enum bch_sb_error_id { #define x(t, n, ...) BCH_FSCK_ERR_##t = n, |
