Commit 5897505e authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: check_extents(): make sure to check i_sectors for last inode

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 93de9e92
...@@ -1426,7 +1426,8 @@ int bch2_check_extents(struct bch_fs *c) ...@@ -1426,7 +1426,8 @@ int bch2_check_extents(struct bch_fs *c)
BTREE_INSERT_LAZY_RW|BTREE_INSERT_NOFAIL, ({ BTREE_INSERT_LAZY_RW|BTREE_INSERT_NOFAIL, ({
bch2_disk_reservation_put(c, &res); bch2_disk_reservation_put(c, &res);
check_extent(&trans, &iter, k, &w, &s, &extent_ends); check_extent(&trans, &iter, k, &w, &s, &extent_ends);
})); })) ?:
check_i_sectors(&trans, &w);
bch2_disk_reservation_put(c, &res); bch2_disk_reservation_put(c, &res);
extent_ends_reset(&extent_ends); extent_ends_reset(&extent_ends);
......
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