btrfs: Handle btrfs_set_extent_delalloc failure in relocate_file_extent_cluster
authorNikolay Borisov <nborisov@suse.com>
Wed, 31 Jan 2018 15:14:02 +0000 (17:14 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 1 Mar 2018 15:16:12 +0000 (16:16 +0100)
commit765f3cebff0023d05d724374db8b63c01e07c499
tree266350ba2f098cb79c0cdb2305ee30a3a878f100
parentac01f26a27f10aace4bb89fd2c2c05a60c251832
btrfs: Handle btrfs_set_extent_delalloc failure in relocate_file_extent_cluster

Essentially duplicate the error handling from the above block which
handles the !PageUptodate(page) case and additionally clear
EXTENT_BOUNDARY.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c