Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 2 | /* |
| 3 | * BTRFS filesystem implementation for U-Boot |
| 4 | * |
Marek Behún | 61143f7 | 2022-06-01 17:17:06 +0200 | [diff] [blame] | 5 | * 2017 Marek Behún, CZ.NIC, kabel@kernel.org |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __BTRFS_BTRFS_H__ |
| 9 | #define __BTRFS_BTRFS_H__ |
| 10 | |
| 11 | #include <linux/rbtree.h> |
Pali Rohár | c4bbbed | 2022-04-07 14:51:03 +0200 | [diff] [blame] | 12 | #include "ctree.h" |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 13 | |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 14 | extern struct btrfs_info btrfs_info; |
Qu Wenruo | f06bfcf | 2020-06-24 18:03:01 +0200 | [diff] [blame] | 15 | extern struct btrfs_fs_info *current_fs_info; |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 16 | |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 17 | /* compression.c */ |
| 18 | u32 btrfs_decompress(u8 type, const char *, u32, char *, u32); |
| 19 | |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 20 | /* inode.c */ |
Qu Wenruo | 92bc179 | 2020-06-24 18:03:03 +0200 | [diff] [blame] | 21 | int btrfs_readlink(struct btrfs_root *root, u64 ino, char *target); |
Qu Wenruo | e342718 | 2020-06-24 18:03:11 +0200 | [diff] [blame] | 22 | int btrfs_file_read(struct btrfs_root *root, u64 ino, u64 file_offset, u64 len, |
| 23 | char *dest); |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 24 | |
| 25 | /* subvolume.c */ |
| 26 | u64 btrfs_get_default_subvol_objectid(void); |
| 27 | |
Marek Behún | 21a14fa | 2017-09-03 17:00:28 +0200 | [diff] [blame] | 28 | #endif /* !__BTRFS_BTRFS_H__ */ |