diff options
author | Qu Wenruo <wqu@suse.com> | 2020-06-24 18:02:56 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-07 20:57:27 -0400 |
commit | 33966de31fa698af8505fe99acc0298e565a60aa (patch) | |
tree | 182416e16ac559e7e7df2f93ea09654f604042bc /fs/btrfs/inode.c | |
parent | 75b0817babe733ecf8d503c3ecce371e9991ca76 (diff) | |
download | u-boot-33966de31fa698af8505fe99acc0298e565a60aa.tar.gz |
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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 55f431a289..c0778726a0 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -11,7 +11,7 @@ u64 btrfs_lookup_inode_ref(struct btrfs_root *root, u64 inr, struct btrfs_inode_ref *refp, char *name) { - struct btrfs_path path; + struct __btrfs_path path; struct btrfs_key *key; struct btrfs_inode_ref *ref; u64 res = -1ULL; @@ -40,7 +40,7 @@ u64 btrfs_lookup_inode_ref(struct btrfs_root *root, u64 inr, res = key->offset; out: - btrfs_free_path(&path); + __btrfs_free_path(&path); return res; } @@ -50,7 +50,7 @@ int btrfs_lookup_inode(const struct btrfs_root *root, struct btrfs_root *new_root) { struct btrfs_root tmp_root = *root; - struct btrfs_path path; + struct __btrfs_path path; int res = -1; if (location->type == BTRFS_ROOT_ITEM_KEY) { @@ -79,13 +79,13 @@ int btrfs_lookup_inode(const struct btrfs_root *root, res = 0; out: - btrfs_free_path(&path); + __btrfs_free_path(&path); return res; } int btrfs_readlink(const struct btrfs_root *root, u64 inr, char *target) { - struct btrfs_path path; + struct __btrfs_path path; struct btrfs_key key; struct btrfs_file_extent_item *extent; const char *data_ptr; @@ -131,7 +131,7 @@ int btrfs_readlink(const struct btrfs_root *root, u64 inr, char *target) target[extent->ram_bytes] = '\0'; res = 0; out: - btrfs_free_path(&path); + __btrfs_free_path(&path); return res; } @@ -320,7 +320,7 @@ u64 btrfs_lookup_path(struct btrfs_root *root, u64 inr, const char *path, u64 btrfs_file_read(const struct btrfs_root *root, u64 inr, u64 offset, u64 size, char *buf) { - struct btrfs_path path; + struct __btrfs_path path; struct btrfs_key key; struct btrfs_file_extent_item *extent; int res = 0; @@ -379,6 +379,6 @@ u64 btrfs_file_read(const struct btrfs_root *root, u64 inr, u64 offset, return -1ULL; out: - btrfs_free_path(&path); + __btrfs_free_path(&path); return rd_all; } |