u-boot-brain/fs/btrfs
Marek Behún 597b4aff7b fs: btrfs: Add disk-to-cpu and cpu-to-disk conversion functions
BTRFS on disk structures are stored in Little Endian. Add functions
to convert this structures to cpu and to disk format.

On Little Endian hosts, these functions do nothing.

On Big Endian the CALL_MACRO_FROM_EACH from variadic-macro.h is used
to define all the members for each structure on which cpu_to_le* or
le*_to_cpu is to be called.

Signed-off-by: Marek Behun <marek.behun@nic.cz>

 create mode 100644 fs/btrfs/conv-funcs.h
2017-10-02 21:52:17 -04:00
..
btrfs_tree.h fs: btrfs: Add btrfs_tree.h and ctree.h from Linux (and modified) 2017-10-02 21:52:17 -04:00
conv-funcs.h fs: btrfs: Add disk-to-cpu and cpu-to-disk conversion functions 2017-10-02 21:52:17 -04:00
ctree.h fs: btrfs: Add btrfs_tree.h and ctree.h from Linux (and modified) 2017-10-02 21:52:17 -04:00