Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299802
b: refs/heads/master
c: 8e52acf
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and David Sterba committed Apr 18, 2012
1 parent 9d6b5cd commit cec031f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 871383be592ba7e819d27556591e315a0df38cee
refs/heads/master: 8e52acf70459020d7e9e9fda25066be4da520943
7 changes: 2 additions & 5 deletions trunk/fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,18 +404,16 @@ static int split_state(struct extent_io_tree *tree, struct extent_state *orig,

/*
* utility function to clear some bits in an extent state struct.
* it will optionally wake up any one waiting on this state (wake == 1), or
* forcibly remove the state from the tree (delete == 1).
* it will optionally wake up any one waiting on this state (wake == 1)
*
* If no bits are set on the state struct after clearing things, the
* struct is freed and removed from the tree
*/
static int clear_state_bit(struct extent_io_tree *tree,
static void clear_state_bit(struct extent_io_tree *tree,
struct extent_state *state,
int *bits, int wake)
{
int bits_to_clear = *bits & ~EXTENT_CTLBITS;
int ret = state->state & bits_to_clear;

if ((bits_to_clear & EXTENT_DIRTY) && (state->state & EXTENT_DIRTY)) {
u64 range = state->end - state->start + 1;
Expand All @@ -437,7 +435,6 @@ static int clear_state_bit(struct extent_io_tree *tree,
} else {
merge_state(tree, state);
}
return ret;
}

static struct extent_state *
Expand Down

0 comments on commit cec031f

Please sign in to comment.