OSDN Git Service

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)
commit9cba40a693e69badb567d6ce0eaa0150f25c3d39
tree3bae92664a7ce97666959987f0ce274a08cbe093
parentf74c2bb98776e2de508f4d607cd519873065118e
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