diff options
author | Tristan Ye <tristan.ye@oracle.com> | 2010-05-11 11:54:44 +0200 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-05-18 21:28:13 +0200 |
commit | ee149a7c6cbaee0e3a1a7d9e9f92711228ef5236 (patch) | |
tree | eb91fa9c12d9d44a3a314f75c5acd4ce1b7328a5 /fs/ocfs2/alloc.c | |
parent | Ocfs2: Fix hole punching to correctly do CoW during cluster zeroing. (diff) | |
download | linux-ee149a7c6cbaee0e3a1a7d9e9f92711228ef5236.tar.xz linux-ee149a7c6cbaee0e3a1a7d9e9f92711228ef5236.zip |
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/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 4 |
1 files changed, 2 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: * * Will return zero if the path passed in is already the leftmost path. */ -static int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, - struct ocfs2_path *path, u32 *cpos) +int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, + struct ocfs2_path *path, u32 *cpos) { int i, j, ret = 0; u64 blkno; |