projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3398124
)
bcachefs: Don't open code bch2_dev_exists2()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Tue, 28 Nov 2023 21:30:45 +0000
(16:30 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:39 +0000
(11:47 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_write.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/io_write.c
b/fs/bcachefs/io_write.c
index 1dad2a351b71276f01873db3364e1edbcf919df2..264d8fcef17684aee1e4ae16dcc9809a3407645d 100644
(file)
--- a/
fs/bcachefs/io_write.c
+++ b/
fs/bcachefs/io_write.c
@@
-403,8
+403,7
@@
void bch2_submit_wbio_replicas(struct bch_write_bio *wbio, struct bch_fs *c,
BUG_ON(c->opts.nochanges);
bkey_for_each_ptr(ptrs, ptr) {
- BUG_ON(ptr->dev >= BCH_SB_MEMBERS_MAX ||
- !c->devs[ptr->dev]);
+ BUG_ON(!bch2_dev_exists2(c, ptr->dev));
ca = bch_dev_bkey_exists(c, ptr->dev);