diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-01-24 17:12:00 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:15 -0400 |
commit | 2c5af169f72c1018e83b79ac82ffe387534910e8 (patch) | |
tree | 818bbcd3317dc579323e2a2dfa75cabeb12b3104 /fs/bcachefs/recovery.c | |
parent | 24547d097a520312cf9d727d3af8da1b0c985f98 (diff) | |
download | lwn-2c5af169f72c1018e83b79ac82ffe387534910e8.tar.gz lwn-2c5af169f72c1018e83b79ac82ffe387534910e8.zip |
bcachefs: reserve space in journal for fs usage entries
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 2ff86262d41c..cb9601dfcd37 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -108,7 +108,8 @@ static bool journal_empty(struct list_head *journal) list_for_each_entry(i, journal, list) { vstruct_for_each(&i->j, entry) { - if (entry->type == BCH_JSET_ENTRY_btree_root) + if (entry->type == BCH_JSET_ENTRY_btree_root || + entry->type == BCH_JSET_ENTRY_usage) continue; if (entry->type == BCH_JSET_ENTRY_btree_keys && |