bcachefs: fix inode counting

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2019-01-24 20:00:57 -05:00
committed by Kent Overstreet
parent 61c8d7c8eb
commit bdba6c29ff

View File

@@ -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