blob: 2bc2f0fd6d37ba2ebe2b9ad9647fb2fafffddc1c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Marek Behún21a14fa2017-09-03 17:00:28 +02002/*
3 * BTRFS filesystem implementation for U-Boot
4 *
Marek Behún61143f72022-06-01 17:17:06 +02005 * 2017 Marek Behún, CZ.NIC, kabel@kernel.org
Marek Behún21a14fa2017-09-03 17:00:28 +02006 */
7
8#ifndef __BTRFS_BTRFS_H__
9#define __BTRFS_BTRFS_H__
10
11#include <linux/rbtree.h>
Pali Rohárc4bbbed2022-04-07 14:51:03 +020012#include "ctree.h"
Marek Behún21a14fa2017-09-03 17:00:28 +020013
Marek Behún21a14fa2017-09-03 17:00:28 +020014extern struct btrfs_info btrfs_info;
Qu Wenruof06bfcf2020-06-24 18:03:01 +020015extern struct btrfs_fs_info *current_fs_info;
Marek Behún21a14fa2017-09-03 17:00:28 +020016
Marek Behún21a14fa2017-09-03 17:00:28 +020017/* compression.c */
18u32 btrfs_decompress(u8 type, const char *, u32, char *, u32);
19
Marek Behún21a14fa2017-09-03 17:00:28 +020020/* inode.c */
Qu Wenruo92bc1792020-06-24 18:03:03 +020021int btrfs_readlink(struct btrfs_root *root, u64 ino, char *target);
Qu Wenruoe3427182020-06-24 18:03:11 +020022int btrfs_file_read(struct btrfs_root *root, u64 ino, u64 file_offset, u64 len,
23 char *dest);
Marek Behún21a14fa2017-09-03 17:00:28 +020024
25/* subvolume.c */
26u64 btrfs_get_default_subvol_objectid(void);
27
Marek Behún21a14fa2017-09-03 17:00:28 +020028#endif /* !__BTRFS_BTRFS_H__ */