btrfs-progs/kernel-shared
Josef Bacik c979ffd787 btrfs-progs: sync accessors.[ch] from the kernel
This syncs accessors.[ch] from the kernel.  For the most part
accessors.h will remain the same, there's just some helpers that need to
be adjusted for eb->data instead of eb->pages.  Additionally accessors.c
needed to be completely updated to deal with this as well.

This is a set of files where we will likely only sync the header going
forward, and leave the C file in place as it needs to be specific to
btrfs-progs.

This forced a few "unrelated" changes

- Using btrfs_dir_item_ftype() instead of btrfs_dir_item_type().  This
  is due to the encryption changes, and was simpler to just do in this
  patch.
- Adjusting some of the print tree code to use the actual helpers and
  not the btrfs-progs ones.

A local definition of static_assert is used to avoid compilation
failures on older gcc (< 9) where the 2nd parameter is mandatory.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-05-26 18:02:28 +02:00
..
uapi btrfs-progs: sync on-disk definitions from the kernel header 2023-05-26 18:02:28 +02:00
accessors.c btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
accessors.h btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
backref.c btrfs-progs: sync messages.[ch] from the kernel 2023-05-26 18:02:28 +02:00
backref.h btrfs-progs: move extent_io.c to kernel-shared/ 2020-08-31 17:01:04 +02:00
compression.h btrfs-progs: kerncompat: hide definition of __init 2023-01-03 17:24:36 +01:00
ctree.c btrfs-progs: remove parent_key arg from btrfs_check_* helpers 2023-05-26 18:02:28 +02:00
ctree.h btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
delayed-ref.c btrfs-progs: sync messages.[ch] from the kernel 2023-05-26 18:02:28 +02:00
delayed-ref.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
dir-item.c btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
disk-io.c btrfs-progs: remove parent_key arg from btrfs_check_* helpers 2023-05-26 18:02:28 +02:00
disk-io.h btrfs-progs: btrfstune: add the ability to convert to block group tree feature 2022-09-12 18:25:32 +02:00
extent-tree.c btrfs-progs: tune: add new option to convert back to extent tree 2023-04-19 01:10:24 +02:00
extent_io.c btrfs-progs: sync messages.[ch] from the kernel 2023-05-26 18:02:28 +02:00
extent_io.h btrfs-progs: make write_extent_buffer take a const eb 2022-11-30 19:14:29 +01:00
file-item.c btrfs-progs: kernel-lib: remove radix-tree 2022-10-11 09:08:07 +02:00
file.c btrfs-progs: sync compression.h from the kernel 2022-11-30 19:14:29 +01:00
free-space-cache.c btrfs-progs: use read_data_from_disk() to replace read_extent_from_disk() and replace read_extent_data() 2022-04-25 19:08:30 +02:00
free-space-cache.h btrfs-progs: check: batch v1 space cache inodes when clearing 2021-07-22 16:26:05 +02:00
free-space-tree.c btrfs-progs: sync messages.[ch] from the kernel 2023-05-26 18:02:28 +02:00
free-space-tree.h btrfs-progs: properly initialize block group thresholds 2022-05-20 15:54:20 +02:00
inode-item.c btrfs-progs: remove the _nr from the item helpers 2022-03-09 15:13:13 +01:00
inode.c btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
messages.c btrfs-progs: add musl compatibility for printf format %pV 2023-05-26 18:02:28 +02:00
messages.h btrfs-progs: sync messages.[ch] from the kernel 2023-05-26 18:02:28 +02:00
print-tree.c btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
print-tree.h btrfs-progs: dump-tree: add options to dump checksums 2021-06-19 22:07:49 +02:00
root-tree.c btrfs-progs: remove the _nr from the item helpers 2022-03-09 15:13:13 +01:00
send.h btrfs-progs: receive: add support for fs-verity 2022-10-11 09:08:08 +02:00
transaction.c btrfs-progs: move dirty eb tracking to it's own io_tree 2022-11-28 18:57:43 +01:00
transaction.h btrfs-progs: move transaction.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
ulist.c btrfs-progs: sync messages.[ch] from the kernel 2023-05-26 18:02:28 +02:00
ulist.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
uuid-tree.c btrfs-progs: remove the _nr from the item helpers 2022-03-09 15:13:13 +01:00
volumes.c btrfs-progs: fix a false alert on an uninitialized variable when BUG_ON() is involved 2023-02-18 17:44:02 +01:00
volumes.h btrfs-progs: remove the unused btrfs_fs_info::seeding member 2022-04-29 22:13:22 +02:00
zoned.c btrfs-progs: stop using legacy *64 interfaces 2023-04-25 16:59:42 +02:00
zoned.h btrfs-progs: sync messages.[ch] from the kernel 2023-05-26 18:02:28 +02:00