Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231745
b: refs/heads/master
c: 26c79f6
h: refs/heads/master
i:
  231743: 8d7b63e
v: v3
  • Loading branch information
Chris Mason committed Jan 16, 2011
1 parent 6e61f27 commit 428aad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0caa102da82799efaba88e234484786a9591c797
refs/heads/master: 26c79f6ba0ccdc4bbc8ef8721406d37e9178e30b
3 changes: 2 additions & 1 deletion trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -7971,13 +7971,14 @@ static int set_block_group_ro(struct btrfs_block_group_cache *cache)

if (sinfo->bytes_used + sinfo->bytes_reserved + sinfo->bytes_pinned +
sinfo->bytes_may_use + sinfo->bytes_readonly +
cache->reserved_pinned + num_bytes < sinfo->total_bytes) {
cache->reserved_pinned + num_bytes <= sinfo->total_bytes) {
sinfo->bytes_readonly += num_bytes;
sinfo->bytes_reserved += cache->reserved_pinned;
cache->reserved_pinned = 0;
cache->ro = 1;
ret = 0;
}

spin_unlock(&cache->lock);
spin_unlock(&sinfo->lock);
return ret;
Expand Down

0 comments on commit 428aad4

Please sign in to comment.