Now that clear_extent_bit can return void when gfp_t & __GFP_WAIT, we can use that to convert unlock_extent to return void to callers as well.
Signed-off-by: Jeff Mahoney <je...@suse.com> --- fs/btrfs/extent_io.c | 5 ++--- fs/btrfs/extent_io.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1266,10 +1266,9 @@ int unlock_extent_cached(struct extent_i cached, mask); } -int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end, gfp_t mask) +void unlock_extent(struct extent_io_tree *tree, u64 start, u64 end, gfp_t mask) { - return __clear_extent_bit(tree, start, end, EXTENT_LOCKED, 1, 0, - NULL, mask); + clear_extent_bit(tree, start, end, EXTENT_LOCKED, 1, 0, NULL, mask); } /* --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -183,7 +183,7 @@ int try_release_extent_state(struct exte int lock_extent(struct extent_io_tree *tree, u64 start, u64 end, gfp_t mask); int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, int bits, struct extent_state **cached, gfp_t mask); -int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end, gfp_t mask); +void unlock_extent(struct extent_io_tree *tree, u64 start, u64 end, gfp_t mask); int unlock_extent_cached(struct extent_io_tree *tree, u64 start, u64 end, struct extent_state **cached, gfp_t mask); int try_lock_extent(struct extent_io_tree *tree, u64 start, u64 end, -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html