]> git.baikalelectronics.ru Git - kernel.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>
Mon, 19 Apr 2021 15:25:16 +0000 (17:25 +0200)
commit2fe7aa3bab2210aca5eaaf120e2e258b99bc49e9
tree7a352d2aadb047d6841b333462b94eb5f19b286f
parent9a9ca8e6111fbfc1d331f773c4ec7fe6cf6fbab2
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]