1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * BTRFS filesystem implementation for U-Boot
5 * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
8 #ifndef __BTRFS_BTRFS_H__
9 #define __BTRFS_BTRFS_H__
11 #include <linux/rbtree.h>
12 #include "conv-funcs.h"
14 extern struct btrfs_info btrfs_info;
15 extern struct btrfs_fs_info *current_fs_info;
18 u32 btrfs_decompress(u8 type, const char *, u32, char *, u32);
21 int btrfs_readlink(struct btrfs_root *root, u64 ino, char *target);
22 int btrfs_file_read(struct btrfs_root *root, u64 ino, u64 file_offset, u64 len,
26 u64 btrfs_get_default_subvol_objectid(void);
28 #endif /* !__BTRFS_BTRFS_H__ */