btrfs: extract the inline extent read code into its own function
authorQu Wenruo <wqu@suse.com>
Fri, 16 Sep 2022 07:28:39 +0000 (15:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:48 +0000 (18:00 +0100)
commita982fc822001e26930b502b16534f6bbd42b232a
treee722d1ff1651a519408f24f21cc53d343fd3295a
parent280f15cb96a61e4122bb28cdc316343ff4918b7d
btrfs: extract the inline extent read code into its own function

Currently we have inline extent read code behind two levels of
indentation, factor them them out into a new function,
read_inline_extent(), to make it a little easier to read.

Since we're here, also remove @extent_offset and @pg_offset arguments
from uncompress_inline() function, as it's not possible to have inline
extents at non-inline file offset.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c