]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
Update bcachefs sources to 635ca475f4 bcachefs: Fix debug build in userspace
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 14 Dec 2021 21:15:21 +0000 (16:15 -0500)
committerKent Overstreet <kent.overstreet@gmail.com>
Tue, 14 Dec 2021 21:15:21 +0000 (16:15 -0500)
.bcachefs_revision
libbcachefs/btree_io.c
libbcachefs/debug.c
libbcachefs/dirent.c
libbcachefs/inode.c

index f836d05b7082a71abda1060bb4ca48f32f07c0b8..d0a5221b97f0dade3fa8b20cecfbd250b1cf9505 100644 (file)
@@ -1 +1 @@
-6bb1ba5c94c225a95cb59cb9670b558bcb1b4f81
+635ca475f4f40ddcb2976f8f20a89df4c574aa22
index f11fcab619021f418958301eee4119a2ebc39c1e..c19c3acbc2b95bdc72410e73c135c550d220761c 100644 (file)
@@ -566,7 +566,8 @@ enum btree_validate_ret {
                                                                        \
        switch (write) {                                                \
        case READ:                                                      \
-               bch_err(c, "%s", _buf2);                                \
+               if (_buf2)                                              \
+                       bch_err(c, "%s", _buf2);                        \
                                                                        \
                switch (type) {                                         \
                case BTREE_ERR_FIXABLE:                                 \
index 294e4baf4deb55820e51cfc8dfa69de1b10f9690..666635f7c7d2f39b9958c23183d6ab098b1fcc05 100644 (file)
@@ -406,6 +406,8 @@ static ssize_t bch2_read_bfloat_failed(struct file *file, char __user *buf,
                if (!i->size)
                        break;
        }
+       bch2_trans_iter_exit(&trans, &iter);
+
        bch2_trans_exit(&trans);
 
        return err < 0 ? err : i->ret;
index a165d08c366830dc922c6831de55e30c29fa1113..6f699b736b348e366b6c1e43567cf7a65c78b8a4 100644 (file)
@@ -230,7 +230,7 @@ int bch2_dirent_rename(struct btree_trans *trans,
 {
        struct btree_iter src_iter = { NULL };
        struct btree_iter dst_iter = { NULL };
-       struct bkey_s_c old_src, old_dst;
+       struct bkey_s_c old_src, old_dst = bkey_s_c_null;
        struct bkey_i_dirent *new_src = NULL, *new_dst = NULL;
        struct bpos dst_pos =
                POS(dst_dir.inum, bch2_dirent_hash(dst_hash, dst_name));
index ffce68a80490657461643e89f21fd72e96b78f85..99b2a77ef9a8a2d9b031b9da9dae28e0ca5ad3bf 100644 (file)
@@ -24,16 +24,6 @@ const char * const bch2_inode_opts[] = {
 };
 
 static const u8 byte_table[8] = { 1, 2, 3, 4, 6, 8, 10, 13 };
-static const u8 bits_table[8] = {
-       1  * 8 - 1,
-       2  * 8 - 2,
-       3  * 8 - 3,
-       4  * 8 - 4,
-       6  * 8 - 5,
-       8  * 8 - 6,
-       10 * 8 - 7,
-       13 * 8 - 8,
-};
 
 static int inode_decode_field(const u8 *in, const u8 *end,
                              u64 out[2], unsigned *out_bits)