]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/errcode.h
Update bcachefs sources to 7c0fe6f104 bcachefs: Fix bch2_fsck_ask_yn()
[bcachefs-tools-debian] / libbcachefs / errcode.h
index c8ac08e5548bcd798c7f0de98e4a3b787a5a10b6..12c0c44eb6b0338c0b20569ed24044c24e9e01e8 100644 (file)
        x(ENOSPC,                       ENOSPC_sb_crypt)                        \
        x(ENOSPC,                       ENOSPC_btree_slot)                      \
        x(ENOSPC,                       ENOSPC_snapshot_tree)                   \
+       x(ENOENT,                       ENOENT_bkey_type_mismatch)              \
+       x(ENOENT,                       ENOENT_str_hash_lookup)                 \
+       x(ENOENT,                       ENOENT_str_hash_set_must_replace)       \
+       x(ENOENT,                       ENOENT_inode)                           \
+       x(ENOENT,                       ENOENT_not_subvol)                      \
+       x(ENOENT,                       ENOENT_directory_dead)                  \
+       x(ENOENT,                       ENOENT_subvolume)                       \
+       x(ENOENT,                       ENOENT_snapshot_tree)                   \
+       x(ENOENT,                       ENOENT_dirent_doesnt_match_inode)       \
+       x(ENOENT,                       ENOENT_dev_not_found)                   \
+       x(ENOENT,                       ENOENT_dev_idx_not_found)               \
        x(0,                            open_buckets_empty)                     \
        x(0,                            freelist_empty)                         \
        x(BCH_ERR_freelist_empty,       no_buckets_found)                       \
@@ -219,7 +230,7 @@ static inline bool _bch2_err_matches(int err, int class)
 #define bch2_err_matches(_err, _class)                 \
 ({                                                     \
        BUILD_BUG_ON(!__builtin_constant_p(_class));    \
-       _bch2_err_matches(_err, _class);                \
+       unlikely(_bch2_err_matches(_err, _class));      \
 })
 
 int __bch2_err_class(int);