aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorTristan Ye <tristan.ye@oracle.com>2010-05-11 05:54:44 -0400
committerJoel Becker <joel.becker@oracle.com>2010-05-18 15:28:13 -0400
commitee149a7c6cbaee0e3a1a7d9e9f92711228ef5236 (patch)
treeeb91fa9c12d9d44a3a314f75c5acd4ce1b7328a5 /fs/ocfs2
parente8aec068ecb1957630816cfa2c150c6b3ddd1790 (diff)
Ocfs2: Make ocfs2_find_cpos_for_left_leaf() public.
The original idea to pull ocfs2_find_cpos_for_left_leaf() out of alloc.c is to benefit punching-holes optimization patch, it however, can also be referred by other funcs in the future who want to do the same job. Signed-off-by: Tristan Ye <tristan.ye@oracle.com> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/alloc.c4
-rw-r--r--fs/ocfs2/alloc.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 0cb4248e03cd..7e9cb753fba7 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -2209,8 +2209,8 @@ out:
2209 * 2209 *
2210 * Will return zero if the path passed in is already the leftmost path. 2210 * Will return zero if the path passed in is already the leftmost path.
2211 */ 2211 */
2212static int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, 2212int ocfs2_find_cpos_for_left_leaf(struct super_block *sb,
2213 struct ocfs2_path *path, u32 *cpos) 2213 struct ocfs2_path *path, u32 *cpos)
2214{ 2214{
2215 int i, j, ret = 0; 2215 int i, j, ret = 0;
2216 u64 blkno; 2216 u64 blkno;
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h
index 4fb9882ed2d6..a55a27bb96a5 100644
--- a/fs/ocfs2/alloc.h
+++ b/fs/ocfs2/alloc.h
@@ -319,6 +319,8 @@ int ocfs2_journal_access_path(struct ocfs2_caching_info *ci,
319 struct ocfs2_path *path); 319 struct ocfs2_path *path);
320int ocfs2_find_cpos_for_right_leaf(struct super_block *sb, 320int ocfs2_find_cpos_for_right_leaf(struct super_block *sb,
321 struct ocfs2_path *path, u32 *cpos); 321 struct ocfs2_path *path, u32 *cpos);
322int ocfs2_find_cpos_for_left_leaf(struct super_block *sb,
323 struct ocfs2_path *path, u32 *cpos);
322int ocfs2_find_subtree_root(struct ocfs2_extent_tree *et, 324int ocfs2_find_subtree_root(struct ocfs2_extent_tree *et,
323 struct ocfs2_path *left, 325 struct ocfs2_path *left,
324 struct ocfs2_path *right); 326 struct ocfs2_path *right);