btrfs: clean up cow_file_range_inline()
authorOmar Sandoval <osandov@fb.com>
Tue, 16 Nov 2021 22:03:45 +0000 (14:03 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:20:03 +0000 (16:20 +0100)
commit1a7bbf739673728d3b897419e98d386a4ba7b224
tree31eb4cbd9e394b23e41238e570685de8b79de4db
parentec54aa10f01672c2155fb2e25ca35d11ea72ebe5
btrfs: clean up cow_file_range_inline()

The start parameter to cow_file_range_inline() (and
insert_inline_extent()) is always 0, so get rid of it and simplify the
logic in those two functions. Pass btrfs_inode to insert_inline_extent()
and remove the redundant root parameter. Also document the requirements
for creating an inline extent. No functional change.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c