| /linux-6.15/fs/bcachefs/ |
| H A D | fsck.c | 1054 if (fsck_err_on(ret, in check_inode_dirent_inode() 1222 fsck_err_on(!ret, in check_inode() 1235 if (fsck_err_on(!ret, in check_inode() 1247 if (fsck_err_on(u.bi_parent_subvol && in check_inode() 1269 if (fsck_err_on(ret, in check_inode() 1273 fsck_err_on(le64_to_cpu(s.inode) != u.bi_inum || in check_inode() 1466 if (fsck_err_on(!i, in check_key_has_inode() 1956 if (fsck_err_on(i->inode.bi_nlink != i->count, in check_subdir_count_notnested() 2043 if (fsck_err_on(ret, in check_dirent_to_subvol() 2237 if (fsck_err_on(!target->inodes.nr, in check_dirent() [all …]
|
| H A D | subvolume.c | 59 if (fsck_err_on(subvol.k->p.offset == BCACHEFS_ROOT_SUBVOL && in check_subvol() 83 if (fsck_err_on(subvol_children_k.k->type != KEY_TYPE_set, in check_subvol() 100 if (fsck_err_on(inode.bi_subvol != subvol.k->p.offset, in check_subvol() 142 if (fsck_err_on(le32_to_cpu(st.master_subvol) != subvol.k->p.offset, in check_subvol() 183 if (fsck_err_on(ret || in check_subvol_child()
|
| H A D | buckets.c | 121 if (fsck_err_on(p.ptr.dev != BCH_SB_MEMBER_INVALID, in bch2_check_fix_ptr() 146 if (fsck_err_on(!g->gen_valid, in bch2_check_fix_ptr() 163 if (fsck_err_on(gen_cmp(p.ptr.gen, g->gen) > 0, in bch2_check_fix_ptr() 186 if (fsck_err_on(gen_cmp(g->gen, p.ptr.gen) > BUCKET_GC_GEN_MAX, in bch2_check_fix_ptr() 197 if (fsck_err_on(!p.ptr.cached && gen_cmp(p.ptr.gen, g->gen) < 0, in bch2_check_fix_ptr() 211 if (fsck_err_on(bucket_data_type_mismatch(g->data_type, data_type), in bch2_check_fix_ptr() 235 if (fsck_err_on(!m || !m->alive, in bch2_check_fix_ptr() 244 if (fsck_err_on(m && m->alive && !bch2_ptr_matches_stripe_m(m, p), in bch2_check_fix_ptr()
|
| H A D | snapshot.c | 484 if (fsck_err_on(ret || in check_snapshot_tree() 506 if (fsck_err_on(ret, in check_snapshot_tree() 511 fsck_err_on(!bch2_snapshot_is_ancestor(c, in check_snapshot_tree() 518 fsck_err_on(BCH_SUBVOLUME_SNAP(&subvol), in check_snapshot_tree() 757 if (fsck_err_on(s.subvol, in check_snapshot() 775 if (fsck_err_on(!ret, in check_snapshot() 787 if (fsck_err_on(le32_to_cpu(s.depth) != real_depth, in check_snapshot() 804 if (fsck_err_on(!ret, in check_snapshot() 990 if (fsck_err_on(!bch2_snapshot_exists(c, *id), in bch2_reconstruct_snapshots() 1023 if (fsck_err_on(!bch2_snapshot_exists(c, k.k->p.snapshot), in bch2_check_key_has_snapshot()
|
| H A D | namei.c | 674 fsck_err_on(S_ISDIR(target->bi_mode), in bch2_check_dirent_inode_dirent() 683 fsck_err_on(target->bi_flags & BCH_INODE_unlinked, in bch2_check_dirent_inode_dirent() 766 if (fsck_err_on(!target->bi_nlink, in bch2_check_dirent_inode_dirent() 801 if (fsck_err_on(d.v->d_type != inode_d_type(target), in __bch2_check_dirent_target()
|
| H A D | logged_ops.c | 41 fsck_err_on(test_bit(BCH_FS_clean_recovery, &c->flags), in resume_logged_op()
|
| H A D | error.h | 135 #define fsck_err_on(cond, c, _err_type, ...) \ macro
|
| H A D | alloc_background.c | 1159 if (fsck_err_on(!ca, in bch2_check_alloc_key() 1206 if (fsck_err_on(a->gen != alloc_gen(k, gens_offset), in bch2_check_alloc_key() 1263 if (fsck_err_on(k.k->type != KEY_TYPE_set, in bch2_check_alloc_hole_freespace() 1323 if (fsck_err_on(g.v.gens[i], trans, in bch2_check_alloc_hole_bucket_gens() 1512 if (fsck_err_on(end <= ca->mi.first_bucket || in bch2_check_bucket_gens_key() 1522 if (fsck_err_on(g.v.gens[b & KEY_TYPE_BUCKET_GENS_MASK], in bch2_check_bucket_gens_key() 1530 if (fsck_err_on(g.v.gens[b & KEY_TYPE_BUCKET_GENS_MASK], in bch2_check_bucket_gens_key() 1716 if (fsck_err_on(!a->io_time[READ], in bch2_check_alloc_to_lru_ref()
|
| H A D | btree_gc.c | 634 if (fsck_err_on(btree_id != BTREE_ID_accounting && in bch2_gc_mark_key() 866 if (fsck_err_on(new.data_type != gc.data_type, in bch2_alloc_write_key() 877 if (fsck_err_on(new._f != gc._f, \ in bch2_alloc_write_key() 988 if (fsck_err_on(bad, in bch2_gc_write_stripes_key()
|
| H A D | inode.c | 1363 if (fsck_err_on(!bkey_is_inode(k.k), in may_delete_deleted_inode() 1375 if (fsck_err_on(bch2_err_matches(ret, ENOTEMPTY), in may_delete_deleted_inode() 1384 if (fsck_err_on(!(inode.bi_flags & BCH_INODE_unlinked), in may_delete_deleted_inode() 1390 if (fsck_err_on(inode.bi_flags & BCH_INODE_has_child_snapshot, in may_delete_deleted_inode()
|
| H A D | sb-clean.c | 156 if (fsck_err_on(!sb_clean, c, in bch2_read_superblock_clean()
|
| H A D | str_hash.c | 124 if (fsck_err_on(inode.bi_hash_seed != snapshot_root->bi_hash_seed || in repair_inode_hash_info()
|
| H A D | recovery.c | 470 if (fsck_err_on(entry->btree_id >= BTREE_ID_NR_MAX, in journal_replay_entry_early() 840 fsck_err_on(!c->sb.clean, c, in bch2_fs_recovery()
|
| H A D | journal_io.c | 216 fsck_err_on(same_device, in journal_entry_add() 221 fsck_err_on(not_identical, in journal_entry_add() 1349 fsck_err_on(!JSET_NO_FLUSH(&i->j), c, in bch2_journal_read()
|
| H A D | reflink.c | 796 if (fsck_err_on(r->refcount != le64_to_cpu(*refcount), in bch2_gc_write_reflink_key()
|
| H A D | disk_accounting.c | 659 if (fsck_err_on(!bch2_replicas_marked_locked(c, &r.e), in bch2_disk_accounting_validate_late()
|
| H A D | fs-io.c | 198 if (fsck_err_on(u.bi_journal_seq > cur_seq, in bch2_get_inode_journal_seq_trans()
|
| H A D | backpointers.c | 509 if (fsck_err_on(bch2_crc_cmp(csum, p.crc.csum), in check_extent_checksum()
|