summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-01-28 03:36:09 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:52 +0300
commit0093a50f2759f6e58fe44bafb80146fd2ef4d6a2 (patch)
tree0ef001b1a56bcebbca83c361ab0f5e67181fad1f
parent4529ae09cea2c040180e991ea648588220611497 (diff)
downloadlinux-0093a50f2759f6e58fe44bafb80146fd2ef4d6a2.tar.xz
bcachefs: Fix build in userspace
The userspace bch_err() macro doesn't use the filesystem argument. Could also be fixed with a better macro. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/ec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c
index f280ca20d457..78bea3e5fa9a 100644
--- a/fs/bcachefs/ec.c
+++ b/fs/bcachefs/ec.c
@@ -744,7 +744,6 @@ err:
static int ec_stripe_bkey_update(struct btree_trans *trans,
struct bkey_i_stripe *new)
{
- struct bch_fs *c = trans->c;
struct btree_iter *iter;
struct bkey_s_c k;
const struct bch_stripe *existing;
@@ -759,7 +758,7 @@ static int ec_stripe_bkey_update(struct btree_trans *trans,
goto err;
if (!k.k || k.k->type != KEY_TYPE_stripe) {
- bch_err(c, "error updating stripe: not found");
+ bch_err(trans->c, "error updating stripe: not found");
ret = -ENOENT;
goto err;
}
@@ -767,7 +766,7 @@ static int ec_stripe_bkey_update(struct btree_trans *trans,
existing = bkey_s_c_to_stripe(k).v;
if (existing->nr_blocks != new->v.nr_blocks) {
- bch_err(c, "error updating stripe: nr_blocks does not match");
+ bch_err(trans->c, "error updating stripe: nr_blocks does not match");
ret = -EINVAL;
goto err;
}