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, 14 Mar 2022 12:13:51 +0000 (13:13 +0100)
commit8dd9872d2e261196069ab03d5dc5e6ec9bc93f4b
treec41da932bd1a949deb1aa9aa7c5a69447dc1adc9
parent28c9b1e75aa1794897a9cb709f20f27f4aadebac
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