summaryrefslogtreecommitdiff
path: root/fs/btrfs/root.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-06-24 18:02:56 +0200
committerTom Rini <trini@konsulko.com>2020-09-07 20:57:27 -0400
commit33966de31fa698af8505fe99acc0298e565a60aa (patch)
tree182416e16ac559e7e7df2f93ea09654f604042bc /fs/btrfs/root.c
parent75b0817babe733ecf8d503c3ecce371e9991ca76 (diff)
fs: btrfs: Rename struct btrfs_path to struct __btrfs_path
To avoid name conflicting between the extent buffer based btrfs_path from btrfs-progs, rename struct btrfs_path to struct __btrfs_path. Also rename btrfs_free_path() to __btrfs_free_path() to avoid conflicts. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'fs/btrfs/root.c')
-rw-r--r--fs/btrfs/root.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/root.c b/fs/btrfs/root.c
index 61155e8918b..9b5f645015a 100644
--- a/fs/btrfs/root.c
+++ b/fs/btrfs/root.c
@@ -7,7 +7,7 @@
#include "btrfs.h"
-static void read_root_item(struct btrfs_path *p, struct btrfs_root_item *item)
+static void read_root_item(struct __btrfs_path *p, struct btrfs_root_item *item)
{
u32 len;
int reset = 0;
@@ -34,7 +34,7 @@ static void read_root_item(struct btrfs_path *p, struct btrfs_root_item *item)
int btrfs_find_root(u64 objectid, struct btrfs_root *root,
struct btrfs_root_item *root_item)
{
- struct btrfs_path path;
+ struct __btrfs_path path;
struct btrfs_root_item my_root_item;
if (!btrfs_search_tree_key_type(&btrfs_info.tree_root, objectid,
@@ -51,13 +51,13 @@ int btrfs_find_root(u64 objectid, struct btrfs_root *root,
root->root_dirid = root_item->root_dirid;
}
- btrfs_free_path(&path);
+ __btrfs_free_path(&path);
return 0;
}
u64 btrfs_lookup_root_ref(u64 subvolid, struct btrfs_root_ref *refp, char *name)
{
- struct btrfs_path path;
+ struct __btrfs_path path;
struct btrfs_key *key;
struct btrfs_root_ref *ref;
u64 res = -1ULL;
@@ -86,7 +86,7 @@ u64 btrfs_lookup_root_ref(u64 subvolid, struct btrfs_root_ref *refp, char *name)
res = key->offset;
out:
- btrfs_free_path(&path);
+ __btrfs_free_path(&path);
return res;
}