/linux/fs/bcachefs/ |
H A D | subvolume.c | 46 if (bch2_err_matches(ret, ENOENT)) in check_subvol() 110 } else if (bch2_err_matches(ret, ENOENT)) { in check_subvol() 135 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOENT), c, in check_subvol() 179 if (ret && !bch2_err_matches(ret, ENOENT)) in check_subvol_child() 294 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOENT) && in bch2_subvolume_get_inlined() 347 bch2_fs_inconsistent_on(warn && bch2_err_matches(ret, ENOENT), trans->c, in __bch2_subvolume_get_snapshot() 424 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOENT), trans->c, in __bch2_subvolume_delete() 525 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOENT), trans->c, in bch2_subvolume_unlink() 567 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOENT), c, in bch2_subvolume_create()
|
H A D | move.c | 364 if (bch2_err_matches(ret, EROFS) || in bch2_move_extent() 365 bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_move_extent() 442 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_move_get_io_opts_one() 541 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_move_data_btree() 573 if (bch2_err_matches(ret2, BCH_ERR_transaction_restart)) in bch2_move_data_btree() 711 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_evacuate_bucket() 721 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_evacuate_bucket() 757 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_evacuate_bucket() 776 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_evacuate_bucket() 788 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_evacuate_bucket() [all …]
|
H A D | acl.c | 302 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_get_acl() 306 acl = !bch2_err_matches(ret, ENOENT) ? ERR_PTR(ret) : NULL; in bch2_get_acl() 343 return bch2_err_matches(ret, ENOENT) ? 0 : ret; in bch2_set_acl_trans() 390 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_set_acl() 420 return bch2_err_matches(ret, ENOENT) ? 0 : ret; in bch2_acl_chmod()
|
H A D | io_misc.c | 93 if (bch2_err_matches(ret, BCH_ERR_operation_blocked)) in bch2_extent_fallocate() 150 bch2_err_matches(ret, BCH_ERR_transaction_restart)) { in bch2_fpunch_at() 208 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_fpunch() 265 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bch2_resume_logged_op_truncate() 402 if (ret && !bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bch2_resume_logged_op_finsert() 472 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bch2_resume_logged_op_finsert()
|
H A D | rebalance.c | 234 if (bch2_err_matches(ret, ENOMEM)) { in do_rebalance_extent() 240 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in do_rebalance_extent() 353 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in do_rebalance() 363 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in do_rebalance() 384 if (!bch2_err_matches(ret, EROFS)) in do_rebalance()
|
H A D | snapshot.c | 53 if (bch2_err_matches(ret, ENOENT)) in bch2_snapshot_tree_lookup() 377 if (bch2_err_matches(ret, ENOENT)) in bch2_snapshot_live() 549 if (ret && !bch2_err_matches(ret, ENOENT)) in check_snapshot_tree() 564 if (ret && !bch2_err_matches(ret, ENOENT)) in check_snapshot_tree() 590 if (bch2_err_matches(ret, ENOENT)) { /* nothing to be done here */ in check_snapshot_tree() 641 if (bch2_err_matches(ret, ENOENT)) in snapshot_tree_ptr_good() 709 if (ret && !bch2_err_matches(ret, ENOENT)) in snapshot_tree_ptr_repair() 764 if (bch2_err_matches(ret, ENOENT)) in check_snapshot() 783 if (bch2_err_matches(ret, ENOENT)) in check_snapshot() 803 if (bch2_err_matches(ret, ENOENT)) in check_snapshot() [all …]
|
H A D | alloc_foreground.c | 672 else if (!bch2_err_matches(PTR_ERR(ob), BCH_ERR_transaction_restart)) in bch2_bucket_alloc_trans() 816 if (bch2_err_matches(ret, BCH_ERR_transaction_restart) || cl) in bch2_bucket_alloc_set_trans() 1061 !bch2_err_matches(ret, BCH_ERR_transaction_restart) && in __open_bucket_add_buckets() 1062 !bch2_err_matches(ret, BCH_ERR_insufficient_devices) && in __open_bucket_add_buckets() 1092 if (bch2_err_matches(ret, BCH_ERR_transaction_restart) || in open_bucket_add_buckets() 1093 bch2_err_matches(ret, BCH_ERR_operation_blocked) || in open_bucket_add_buckets() 1094 bch2_err_matches(ret, BCH_ERR_freelist_empty) || in open_bucket_add_buckets() 1095 bch2_err_matches(ret, BCH_ERR_open_buckets_empty)) in open_bucket_add_buckets() 1430 bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_alloc_sectors_start_trans() 1434 if (bch2_err_matches(ret, BCH_ERR_open_buckets_empty)) { in bch2_alloc_sectors_start_trans() [all …]
|
H A D | movinggc.c | 162 if (bch2_err_matches(ret, EROFS)) in bch2_copygc_get_buckets() 251 if (bch2_err_matches(ret, ENOENT)) in bch2_copygc() 254 if (ret < 0 && !bch2_err_matches(ret, EROFS)) in bch2_copygc()
|
H A D | recovery_passes.c | 213 if (bch2_err_matches(ret, BCH_ERR_restart_recovery)) { in bch2_run_online_recovery_passes() 246 if (bch2_err_matches(ret, BCH_ERR_restart_recovery) || in bch2_run_recovery_passes()
|
H A D | fsck.c | 260 if (bch2_err_matches(ret, ENOENT)) in lookup_lostfound() 516 if (!bch2_err_matches(ret, ENOENT)) in reattach_subvol() 938 if (ret && !bch2_err_matches(ret, ENOENT)) in dirent_has_target() 1052 if (!bch2_err_matches(ret, EEXIST)) in fsck_rename_dirent() 1211 if (ret && !bch2_err_matches(ret, ENOENT)) in check_inode_dirent_inode() 1419 if (ret && !bch2_err_matches(ret, ENOENT)) in check_inode() 2171 if (ret && !bch2_err_matches(ret, ENOENT)) in check_dirent_inode_dirent() 2323 if (ret && !bch2_err_matches(ret, ENOENT)) in check_dirent_to_subvol() 2329 if (ret2 && !bch2_err_matches(ret, ENOENT)) in check_dirent_to_subvol() 2374 if (ret && !bch2_err_matches(ret, ENOENT)) in check_dirent_to_subvol() [all …]
|
H A D | io_write.c | 363 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_write_index_default() 379 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_write_index_default() 529 BUG_ON(bch2_err_matches(ret, BCH_ERR_transaction_restart)); in __bch2_write_index() 534 if (ret && !bch2_err_matches(ret, EROFS)) { in __bch2_write_index() 1175 if (ret && !bch2_err_matches(ret, EROFS)) { in bch2_nocow_write_convert_unwritten() 1339 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_nocow_write() 1449 if (bch2_err_matches(ret, BCH_ERR_operation_blocked)) in __bch2_write()
|
H A D | fs.c | 107 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_write_inode() 110 bch2_fs_fatal_err_on(bch2_err_matches(ret, ENOENT), c, in bch2_write_inode() 545 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bch2_create() 624 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOENT), in bch2_lookup_trans() 930 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_rename2() 1075 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_setattr_nonsize() 1269 while (!ret || bch2_err_matches(ret, BCH_ERR_transaction_restart)) { in bch2_fiemap() 1709 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_get_name() 2260 if (bch2_err_matches(ret, EROFS) && ret != -EROFS) in bch2_fs_get_tree()
|
H A D | btree_iter.h | 347 BUG_ON(!bch2_err_matches(-err, BCH_ERR_transaction_restart)); in btree_trans_restart_nounlock() 716 if (bch2_err_matches(_ret2, BCH_ERR_transaction_restart)) \ 740 while (bch2_err_matches(_ret2 = (_do), BCH_ERR_transaction_restart))\ 887 if (bch2_err_matches(_ret, ENOMEM)) { \
|
H A D | btree_key_cache.c | 366 if (!bch2_err_matches(ret, BCH_ERR_transaction_restart)) { in bch2_btree_path_traverse_cached() 438 !bch2_err_matches(ret, BCH_ERR_transaction_restart) && in btree_key_cache_flush_pos() 439 !bch2_err_matches(ret, BCH_ERR_journal_reclaim_would_deadlock) && in btree_key_cache_flush_pos()
|
H A D | data_update.c | 380 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bch2_data_update_index_update() 408 BUG_ON(bch2_err_matches(ret, BCH_ERR_transaction_restart)); in __bch2_data_update_index_update() 485 if (bch2_err_matches(ret, BCH_ERR_operation_blocked)) { in bch2_update_unwritten_extent()
|
H A D | inode.c | 989 if (ret && !bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_inode_delete_keys() 1053 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_inode_rm() 1221 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bch2_inode_rm_snapshot() 1296 if (fsck_err_on(bch2_err_matches(ret, ENOTEMPTY), in may_delete_deleted_inode() 1393 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) { in bch2_delete_dead_inodes()
|
H A D | fs-io.c | 685 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bchfs_fallocate() 689 if (bch2_err_matches(ret, ENOSPC) && (mode & FALLOC_FL_ZERO_RANGE)) { in __bchfs_fallocate() 740 !(bch2_err_matches(ret, ENOSPC) && (mode & FALLOC_FL_ZERO_RANGE))) in bchfs_fallocate()
|
H A D | btree_gc.c | 346 if (mustfix_fsck_err_on(bch2_err_matches(ret, EIO), in bch2_btree_repair_topology_recurse() 701 } while (bch2_err_matches(ret, BCH_ERR_transaction_restart)); in bch2_gc_btree() 731 if (mustfix_fsck_err_on(bch2_err_matches(ret, EIO), in bch2_gc_btrees() 1321 if (!bch2_err_matches(ret, EROFS)) in bch2_gc_gens()
|
H A D | reflink.c | 466 bch2_err_matches(ret, BCH_ERR_transaction_restart)) && in bch2_remap_range() 584 } while (bch2_err_matches(ret2, BCH_ERR_transaction_restart)); in bch2_remap_range()
|
H A D | xattr.c | 220 if (bch2_err_matches(ret, ENOENT)) in bch2_xattr_set() 336 if (ret < 0 && bch2_err_matches(ret, ENOENT)) in bch2_xattr_get_handler()
|
H A D | btree_cache.c | 941 if (bch2_err_matches(PTR_ERR_OR_ZERO(b), ENOMEM)) { in bch2_btree_node_fill() 1073 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in __bch2_btree_node_get() 1189 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_btree_node_get() 1276 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_btree_node_get_noiter()
|
H A D | btree_trans_commit.c | 943 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in bch2_trans_commit_error() 988 BUG_ON(bch2_err_matches(ret, BCH_ERR_transaction_restart) != !!trans->restarted); in bch2_trans_commit_error() 990 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOSPC) && in bch2_trans_commit_error()
|
H A D | btree_update_interior.c | 1248 if (bch2_err_matches(ret, ENOSPC) || in bch2_btree_update_start() 1249 bch2_err_matches(ret, ENOMEM)) { in bch2_btree_update_start() 1256 if (bch2_err_matches(ret, ENOSPC) && in bch2_btree_update_start() 1270 } while (bch2_err_matches(ret, BCH_ERR_operation_blocked)); in bch2_btree_update_start() 1287 if (!bch2_err_matches(ret, ENOSPC) && in bch2_btree_update_start() 1288 !bch2_err_matches(ret, EROFS) && in bch2_btree_update_start()
|
H A D | btree_iter.c | 751 if (bch2_err_matches(ret, BCH_ERR_lock_fail_root_changed)) in btree_path_lock_root() 753 if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) in btree_path_lock_root() 1030 if (bch2_err_matches(ret, BCH_ERR_transaction_restart) || in bch2_btree_path_traverse_all() 1031 bch2_err_matches(ret, ENOMEM)) in bch2_btree_path_traverse_all() 1214 if (bch2_err_matches(ret, BCH_ERR_transaction_restart) != !!trans->restarted) in bch2_btree_path_traverse_one() 1935 bch2_err_matches(PTR_ERR_OR_ZERO(b), BCH_ERR_transaction_restart)) in bch2_btree_iter_peek_node_and_restart() 2749 bch2_err_matches(bkey_err(k), BCH_ERR_transaction_restart))) in bch2_btree_iter_peek_and_restart_outlined()
|
H A D | quota.c | 491 bch2_fs_inconsistent_on(bch2_err_matches(ret, ENOENT), c, in bch2_fs_quota_read_inode() 508 if (bch2_err_matches(ret, ENOENT)) in bch2_fs_quota_read_inode()
|