summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-05-08 02:43:43 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:03 +0200
commit3a402c8dabf11142d78d0f6174b50db6ba846c4e (patch)
tree5bdb84c3f734a1a74a9332f31d368f922d33f2a9 /fs/bcachefs/super.h
parentbcachefs: Fix oob write in __bch2_btree_node_write (diff)
downloadlinux-3a402c8dabf11142d78d0f6174b50db6ba846c4e.tar.xz
linux-3a402c8dabf11142d78d0f6174b50db6ba846c4e.zip
bcachefs: Fix some refcounting bugs
We really need debug mode assertions that ca->ref and ca->io_ref are used correctly. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.h')
-rw-r--r--fs/bcachefs/super.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/bcachefs/super.h b/fs/bcachefs/super.h
index 28e6d78f9fcd..b151bffcd3a3 100644
--- a/fs/bcachefs/super.h
+++ b/fs/bcachefs/super.h
@@ -107,11 +107,8 @@ static inline struct bch_dev *__bch2_next_dev(struct bch_fs *c, unsigned *iter,
return ca;
}
-#define __for_each_member_device(ca, c, iter, mask) \
- for ((iter) = 0; ((ca) = __bch2_next_dev((c), &(iter), mask)); (iter)++)
-
#define for_each_member_device_rcu(ca, c, iter, mask) \
- __for_each_member_device(ca, c, iter, mask)
+ for ((iter) = 0; ((ca) = __bch2_next_dev((c), &(iter), mask)); (iter)++)
static inline struct bch_dev *bch2_get_next_dev(struct bch_fs *c, unsigned *iter)
{