OSDN Git Service

Btrfs: move all reflink implementation code into its own file
authorFilipe Manana <fdmanana@suse.com>
Fri, 28 Feb 2020 13:04:17 +0000 (13:04 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:54 +0000 (17:01 +0100)
commit6a177381007b463ad611375cce526c24f12ab081
tree0748972601f10beff620a9987a3dd265b645aa71
parenta8753ee3a859a519613641963464b38b9a79dc9c
Btrfs: move all reflink implementation code into its own file

The reflink code is quite large and has been living in ioctl.c since ever.
It has grown over the years after many bug fixes and improvements, and
since I'm planning on making some further improvements on it, it's time
to get it better organized by moving into its own file, reflink.c
(similar to what xfs does for example).

This change only moves the code out of ioctl.c into the new file, it
doesn't do any other change.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/Makefile
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/ioctl.c
fs/btrfs/reflink.c [new file with mode: 0644]
fs/btrfs/reflink.h [new file with mode: 0644]