Commit bdba6c29 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix inode counting

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 61c8d7c8
......@@ -823,7 +823,7 @@ static int __bch2_mark_key(struct bch_fs *c, struct bkey_s_c k,
ret = bch2_mark_stripe(c, k, inserting,
fs_usage, journal_seq, flags, gc);
break;
case KEY_TYPE_alloc:
case KEY_TYPE_inode:
if (inserting)
fs_usage->s.nr_inodes++;
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment