btrfs: rename btrfs_insert_clone_extent() to a more generic name
authorFilipe Manana <fdmanana@suse.com>
Tue, 8 Sep 2020 10:27:24 +0000 (11:27 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:17 +0000 (12:13 +0200)
commit0cbb5bdfea2675f4b9749f99120a79f9e0a28600
treea2e9d5bd3a29abc90132ffbf44d7028aff943aec
parent306bfec02b1054d24bbbeec49ece6db396d451e0
btrfs: rename btrfs_insert_clone_extent() to a more generic name

Now that we use the same mechanism to replace all the extents in a file
range with either a hole, an existing extent (when cloning) or a new
extent (when using fallocate), the name of btrfs_insert_clone_extent()
no longer reflects its genericity.

So rename it to btrfs_insert_replace_extent(), since what it does is
to either insert an existing extent or a new extent into a file range.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c