Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180055
b: refs/heads/master
c: f48b907
h: refs/heads/master
i:
  180053: 1156a2c
  180051: b3e0504
  180047: ea2331c
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Jan 28, 2010
1 parent 001d60d commit e7d6111
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3acc2a6850efff647f1c5458524eb3a8bcba20a
refs/heads/master: f48b90756bd834dda852ff514f2690d3175b1f44
5 changes: 5 additions & 0 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2538,6 +2538,11 @@ int btrfs_chunk_readonly(struct btrfs_root *root, u64 chunk_offset)
if (!em)
return 1;

if (btrfs_test_opt(root, DEGRADED)) {
free_extent_map(em);
return 0;
}

map = (struct map_lookup *)em->bdev;
for (i = 0; i < map->num_stripes; i++) {
if (!map->stripes[i].dev->writeable) {
Expand Down

0 comments on commit e7d6111

Please sign in to comment.