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>
Tue, 15 Feb 2022 15:54:50 +0000 (16:54 +0100)
commita5d549011edebce953fad08366f3f1f7b079019c
treef7b8dc044286065da2c4f74dababac21a510b5db
parente651da519969ea1d56e3fbded1e5fe04fa049c47
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