]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: factor out extent dropping code from hole punch handler
authorFilipe Manana <fdmanana@suse.com>
Fri, 28 Jun 2019 22:11:26 +0000 (23:11 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:58:58 +0000 (14:58 +0200)
commit46b8ec11324ae801b18470962a3ded3ab1687ccf
tree3bae92664a7ce97666959987f0ce274a08cbe093
parent220de42a8402f0148d4956a35244fc7ed7a9c5c9
Btrfs: factor out extent dropping code from hole punch handler

Move the code that is responsible for dropping extents in a range out of
btrfs_punch_hole() into a new helper function, btrfs_punch_hole_range(),
so that later it can be used by the reflinking (extent cloning and dedup)
code to fix a ENOSPC bug.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c