From: Nikolay Borisov Date: Tue, 12 Mar 2019 15:20:28 +0000 (+0200) Subject: btrfs: Replace clear_extent_bit with unlock_extent X-Git-Tag: v5.15~6154^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69684c5a88903f4b8b05850d9b89d276b54ec54b;p=platform%2Fkernel%2Flinux-starfive.git btrfs: Replace clear_extent_bit with unlock_extent Reviewed-by: Johannes Thumshirn Signed-off-by: Nikolay Borisov Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index f83c8ed..0536255 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -1196,8 +1196,7 @@ static int cow_file_range_async(struct inode *inode, struct page *locked_page, int i; bool should_compress; - clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, - 1, 0, NULL); + unlock_extent(&BTRFS_I(inode)->io_tree, start, end); if (BTRFS_I(inode)->flags & BTRFS_INODE_NOCOMPRESS && !btrfs_test_opt(fs_info, FORCE_COMPRESS)) {