Commit f02810a1 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix an unused var warning in userspace

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f24fab9c
...@@ -159,13 +159,10 @@ static int reattach_inode(struct btree_trans *trans, ...@@ -159,13 +159,10 @@ static int reattach_inode(struct btree_trans *trans,
struct bch_inode_unpacked *lostfound, struct bch_inode_unpacked *lostfound,
u64 inum) u64 inum)
{ {
struct bch_fs *c = trans->c; int ret = __bch2_trans_do(trans, NULL, NULL, BTREE_INSERT_LAZY_RW,
int ret;
ret = __bch2_trans_do(trans, NULL, NULL, BTREE_INSERT_LAZY_RW,
__reattach_inode(trans, lostfound, inum)); __reattach_inode(trans, lostfound, inum));
if (ret) if (ret)
bch_err(c, "error %i reattaching inode %llu", ret, inum); bch_err(trans->c, "error %i reattaching inode %llu", ret, inum);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment