Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299217
b: refs/heads/master
c: c6664b4
h: refs/heads/master
i:
  299215: 3bedca9
v: v3
  • Loading branch information
Ilya Dryomov authored and Chris Mason committed Apr 12, 2012
1 parent e8a7b68 commit 786f107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: b89203f74bdfcb15407d54d3f257b16a2ea19e62
refs/heads/master: c6664b42c4e567792abdb17c958fb01c5bcfcb3a
5 changes: 2 additions & 3 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3152,15 +3152,14 @@ static void set_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags)
/*
* returns target flags in extended format or 0 if restripe for this
* chunk_type is not in progress
*
* should be called with either volume_mutex or balance_lock held
*/
static u64 get_restripe_target(struct btrfs_fs_info *fs_info, u64 flags)
{
struct btrfs_balance_control *bctl = fs_info->balance_ctl;
u64 target = 0;

BUG_ON(!mutex_is_locked(&fs_info->volume_mutex) &&
!spin_is_locked(&fs_info->balance_lock));

if (!bctl)
return 0;

Expand Down

0 comments on commit 786f107

Please sign in to comment.