]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb3021be96d163d169ceeeee7c753b06bc195d80
treec41da932bd1a949deb1aa9aa7c5a69447dc1adc9
parent6587b637c61a5a3d00781f8fc477b8cacf66bb99
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