Commit 69684c5a authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba
Browse files

btrfs: Replace clear_extent_bit with unlock_extent

parent 1368c6da
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1196,8 +1196,7 @@ static int cow_file_range_async(struct inode *inode, struct page *locked_page,
	int i;
	int i;
	bool should_compress;
	bool should_compress;


	clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED,
	unlock_extent(&BTRFS_I(inode)->io_tree, start, end);
			 1, 0, NULL);


	if (BTRFS_I(inode)->flags & BTRFS_INODE_NOCOMPRESS &&
	if (BTRFS_I(inode)->flags & BTRFS_INODE_NOCOMPRESS &&
	    !btrfs_test_opt(fs_info, FORCE_COMPRESS)) {
	    !btrfs_test_opt(fs_info, FORCE_COMPRESS)) {