Skip to content

Commit 91cb916

Browse files
author
Alexander Block
committed
Btrfs: make iref_to_path non static
Make iref_to_path non static (needed in send) and rename it to btrfs_iref_to_path Signed-off-by: Alexander Block <[email protected]>
1 parent e679376 commit 91cb916

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

fs/btrfs/backref.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,10 +1125,10 @@ static int inode_ref_info(u64 inum, u64 ioff, struct btrfs_root *fs_root,
11251125
* required for the path to fit into the buffer. in that case, the returned
11261126
* value will be smaller than dest. callers must check this!
11271127
*/
1128-
static char *iref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path,
1129-
struct btrfs_inode_ref *iref,
1130-
struct extent_buffer *eb_in, u64 parent,
1131-
char *dest, u32 size)
1128+
char *btrfs_iref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path,
1129+
struct btrfs_inode_ref *iref,
1130+
struct extent_buffer *eb_in, u64 parent,
1131+
char *dest, u32 size)
11321132
{
11331133
u32 len;
11341134
int slot;
@@ -1543,7 +1543,7 @@ static int inode_to_path(u64 inum, struct btrfs_inode_ref *iref,
15431543
ipath->fspath->bytes_left - s_ptr : 0;
15441544

15451545
fspath_min = (char *)ipath->fspath->val + (i + 1) * s_ptr;
1546-
fspath = iref_to_path(ipath->fs_root, ipath->btrfs_path, iref, eb,
1546+
fspath = btrfs_iref_to_path(ipath->fs_root, ipath->btrfs_path, iref, eb,
15471547
inum, fspath_min, bytes_left);
15481548
if (IS_ERR(fspath))
15491549
return PTR_ERR(fspath);

fs/btrfs/backref.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include "ioctl.h"
2323
#include "ulist.h"
24+
#include "extent_io.h"
2425

2526
#define BTRFS_BACKREF_SEARCH_COMMIT_ROOT ((struct btrfs_trans_handle *)0)
2627

@@ -60,6 +61,9 @@ int btrfs_find_all_roots(struct btrfs_trans_handle *trans,
6061
struct btrfs_fs_info *fs_info, u64 bytenr,
6162
u64 delayed_ref_seq, u64 time_seq,
6263
struct ulist **roots);
64+
char *btrfs_iref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path,
65+
struct btrfs_inode_ref *iref, struct extent_buffer *eb,
66+
u64 parent, char *dest, u32 size);
6367

6468
struct btrfs_data_container *init_data_container(u32 total_bytes);
6569
struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,

0 commit comments

Comments
 (0)