|
@@ -1277,7 +1277,12 @@ int set_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
|
|
|
int clear_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
|
|
|
unsigned bits, gfp_t mask)
|
|
|
{
|
|
|
- return clear_extent_bit(tree, start, end, bits, 0, 0, NULL, mask);
|
|
|
+ int wake = 0;
|
|
|
+
|
|
|
+ if (bits & EXTENT_LOCKED)
|
|
|
+ wake = 1;
|
|
|
+
|
|
|
+ return clear_extent_bit(tree, start, end, bits, wake, 0, NULL, mask);
|
|
|
}
|
|
|
|
|
|
int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end,
|