summaryrefslogtreecommitdiff
path: root/libbcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-03-09 16:27:23 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2020-03-09 16:27:23 -0400
commit96a6a5a58fda0456a332ceeda8148d75c4b5a214 (patch)
tree3c27ca4d7603468918fb73f19ff0e49d675463d3 /libbcachefs/io.c
parent2d238045d3a7262c4ba58da7eeedbc4a0df5b59f (diff)
Update bcachefs sources to 7e07e19c29 bcachefs: Traverse iterator in journal replay
Diffstat (limited to 'libbcachefs/io.c')
-rw-r--r--libbcachefs/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/io.c b/libbcachefs/io.c
index 7cc26af1..7312ab2a 100644
--- a/libbcachefs/io.c
+++ b/libbcachefs/io.c
@@ -1221,7 +1221,8 @@ void bch2_write(struct closure *cl)
if (c->opts.nochanges ||
!percpu_ref_tryget(&c->writes)) {
- __bcache_io_error(c, "read only");
+ if (!(op->flags & BCH_WRITE_FROM_INTERNAL))
+ __bcache_io_error(c, "read only");
op->error = -EROFS;
goto err;
}