aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-03-12 11:20:28 -0400
committerDavid Sterba <dsterba@suse.com>2019-05-02 07:48:19 -0400
commit69684c5a88903f4b8b05850d9b89d276b54ec54b (patch)
treef93461a72c11fb66bcc09518d050cc3364301d82
parent1368c6dac7f10a18195fa4ebf072799a727fd4a6 (diff)
btrfs: Replace clear_extent_bit with unlock_extent
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index f83c8edd1703..05362559645e 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,
1196 int i; 1196 int i;
1197 bool should_compress; 1197 bool should_compress;
1198 1198
1199 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, 1199 unlock_extent(&BTRFS_I(inode)->io_tree, start, end);
1200 1, 0, NULL);
1201 1200
1202 if (BTRFS_I(inode)->flags & BTRFS_INODE_NOCOMPRESS && 1201 if (BTRFS_I(inode)->flags & BTRFS_INODE_NOCOMPRESS &&
1203 !btrfs_test_opt(fs_info, FORCE_COMPRESS)) { 1202 !btrfs_test_opt(fs_info, FORCE_COMPRESS)) {