Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c584482b authored by Liu Hui's avatar Liu Hui Committed by Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent 9aead435
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}