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

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-07-16 14:33:57 -04:00
parent 93de9e92c3
commit 5897505e67

View File

@ -1426,7 +1426,8 @@ int bch2_check_extents(struct bch_fs *c)
BTREE_INSERT_LAZY_RW|BTREE_INSERT_NOFAIL, ({
bch2_disk_reservation_put(c, &res);
check_extent(&trans, &iter, k, &w, &s, &extent_ends);
}));
})) ?:
check_i_sectors(&trans, &w);
bch2_disk_reservation_put(c, &res);
extent_ends_reset(&extent_ends);