]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: move the tree mod log code into its own file
authorFilipe Manana <fdmanana@suse.com>
Thu, 11 Mar 2021 14:31:07 +0000 (14:31 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Apr 2021 13:35:55 +0000 (15:35 +0200)
commitb2acd12b4f9761398ae8bfcc6bdb26c632761c4e
tree16d97331eaf0c16831afa97c82e58558b8b1a956
parenta94f7d48a486173afb26e0e34dc11b5326c1b9d8
btrfs: move the tree mod log code into its own file

The tree modification log, which records modifications done to btrees, is
quite large and currently spread all over ctree.c, which is a huge file
already.

To make things better organized, move all that code into its own separate
source and header files. Functions and definitions that are used outside
of the module (mostly by ctree.c) are renamed so that they start with a
"btrfs_" prefix. Everything else remains unchanged.

This makes it easier to go over the tree modification log code every
time I need to go read it to fix a bug.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ minor comment updates ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/Makefile
fs/btrfs/backref.c
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/delayed-ref.c
fs/btrfs/qgroup.c
fs/btrfs/tree-mod-log.c [new file with mode: 0644]
fs/btrfs/tree-mod-log.h [new file with mode: 0644]