btrfs: move accessor helpers into accessors.h

This is a large patch, but because they're all macros it's impossible to
split up.  Simply copy all of the item accessors in ctree.h and paste
them in accessors.h, and then update any files to include the header so
everything compiles.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ reformat comments, style fixups ]
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Josef Bacik 2022-10-19 10:51:00 -04:00 committed by David Sterba
parent ad1ac5012c
commit 07e81dc944
46 changed files with 1112 additions and 1091 deletions

View file

@ -24,6 +24,7 @@
#include "zoned.h"
#include "block-group.h"
#include "fs.h"
#include "accessors.h"
/*
* Device replace overview