-6bb1ba5c94c225a95cb59cb9670b558bcb1b4f81
+635ca475f4f40ddcb2976f8f20a89df4c574aa22
\
switch (write) { \
case READ: \
- bch_err(c, "%s", _buf2); \
+ if (_buf2) \
+ bch_err(c, "%s", _buf2); \
\
switch (type) { \
case BTREE_ERR_FIXABLE: \
if (!i->size)
break;
}
+ bch2_trans_iter_exit(&trans, &iter);
+
bch2_trans_exit(&trans);
return err < 0 ? err : i->ret;
{
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));
};
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)