summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorLiu Hui <onlyflyer@gmail.com>2009-01-05 15:49:55 -0500
committerChris Mason <chris.mason@oracle.com>2009-01-05 15:49:55 -0500
commitc584482b47f47b051cdc1d5236b99ad18f1b1cfb (patch)
tree9f1627b79412e91561aebd23d44f64ede3f720db /fs/btrfs/extent_io.c
parent9aead43588f4bdb1bb61e348ad0f33794bbddc0f (diff)
downloadblackbird-op-linux-c584482b47f47b051cdc1d5236b99ad18f1b1cfb.tar.gz
blackbird-op-linux-c584482b47f47b051cdc1d5236b99ad18f1b1cfb.zip
Btrfs: Fix typo in clear_state_cb
In clear_state_cb, we should check 'tree->ops->clear_bit_hook' instead of 'tree->ops->set_bit_hook'. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 25ce2d18e5b4..0bf7684207aa 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -340,7 +340,7 @@ static void clear_state_cb(struct extent_io_tree *tree,
struct extent_state *state,
unsigned long bits)
{
- if (tree->ops && tree->ops->set_bit_hook) {
+ if (tree->ops && tree->ops->clear_bit_hook) {
tree->ops->clear_bit_hook(tree->mapping->host, state->start,
state->end, state->state, bits);
}
OpenPOWER on IntegriCloud