aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-06-03 08:23:23 -0400
committerAlexander Block <ablock84@googlemail.com>2012-07-25 17:25:06 -0400
commit91cb916ca26feb99c78c131a1643af3d10fefd96 (patch)
treeb2913bd53fec94ab2cd9fe7cc9c843806debe0c9 /fs/btrfs
parente679376911d016b670c8cfc1645c178f77e8d1d3 (diff)
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 <ablock84@googlemail.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/backref.c10
-rw-r--r--fs/btrfs/backref.h4
2 files changed, 9 insertions, 5 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index a383c18e74e8..e99fe0e31da2 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -1125,10 +1125,10 @@ static int inode_ref_info(u64 inum, u64 ioff, struct btrfs_root *fs_root,
1125 * required for the path to fit into the buffer. in that case, the returned 1125 * required for the path to fit into the buffer. in that case, the returned
1126 * value will be smaller than dest. callers must check this! 1126 * value will be smaller than dest. callers must check this!
1127 */ 1127 */
1128static char *iref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, 1128char *btrfs_iref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path,
1129 struct btrfs_inode_ref *iref, 1129 struct btrfs_inode_ref *iref,
1130 struct extent_buffer *eb_in, u64 parent, 1130 struct extent_buffer *eb_in, u64 parent,
1131 char *dest, u32 size) 1131 char *dest, u32 size)
1132{ 1132{
1133 u32 len; 1133 u32 len;
1134 int slot; 1134 int slot;
@@ -1543,7 +1543,7 @@ static int inode_to_path(u64 inum, struct btrfs_inode_ref *iref,
1543 ipath->fspath->bytes_left - s_ptr : 0; 1543 ipath->fspath->bytes_left - s_ptr : 0;
1544 1544
1545 fspath_min = (char *)ipath->fspath->val + (i + 1) * s_ptr; 1545 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,
1547 inum, fspath_min, bytes_left); 1547 inum, fspath_min, bytes_left);
1548 if (IS_ERR(fspath)) 1548 if (IS_ERR(fspath))
1549 return PTR_ERR(fspath); 1549 return PTR_ERR(fspath);
diff --git a/fs/btrfs/backref.h b/fs/btrfs/backref.h
index c18d8ac7b795..1a765792fbf2 100644
--- a/fs/btrfs/backref.h
+++ b/fs/btrfs/backref.h
@@ -21,6 +21,7 @@
21 21
22#include "ioctl.h" 22#include "ioctl.h"
23#include "ulist.h" 23#include "ulist.h"
24#include "extent_io.h"
24 25
25#define BTRFS_BACKREF_SEARCH_COMMIT_ROOT ((struct btrfs_trans_handle *)0) 26#define BTRFS_BACKREF_SEARCH_COMMIT_ROOT ((struct btrfs_trans_handle *)0)
26 27
@@ -60,6 +61,9 @@ int btrfs_find_all_roots(struct btrfs_trans_handle *trans,
60 struct btrfs_fs_info *fs_info, u64 bytenr, 61 struct btrfs_fs_info *fs_info, u64 bytenr,
61 u64 delayed_ref_seq, u64 time_seq, 62 u64 delayed_ref_seq, u64 time_seq,
62 struct ulist **roots); 63 struct ulist **roots);
64char *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);
63 67
64struct btrfs_data_container *init_data_container(u32 total_bytes); 68struct btrfs_data_container *init_data_container(u32 total_bytes);
65struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, 69struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,