aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/aops.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2008-08-18 05:38:45 -0400
committerMark Fasheh <mfasheh@suse.com>2008-10-13 16:57:59 -0400
commit0eb8d47e69a2211a36643b180f1843ef45f6017d (patch)
tree745a063238cbcf6af84644bd51d4bfcd592e06a1 /fs/ocfs2/aops.c
parente7d4cb6bc19658646357eeff134645cd9bc3479f (diff)
ocfs2: Make high level btree extend code generic
Factor out the non-inode specifics of ocfs2_do_extend_allocation() into a more generic function, ocfs2_do_cluster_allocation(). ocfs2_do_extend_allocation calls ocfs2_do_cluster_allocation() now, but the latter can be used for other btree types as well. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r--fs/ocfs2/aops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 44ea5eb3fdc4..e7acd2867904 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -1255,10 +1255,10 @@ static int ocfs2_write_cluster(struct address_space *mapping,
1255 * any additional semaphores or cluster locks. 1255 * any additional semaphores or cluster locks.
1256 */ 1256 */
1257 tmp_pos = cpos; 1257 tmp_pos = cpos;
1258 ret = ocfs2_do_extend_allocation(OCFS2_SB(inode->i_sb), inode, 1258 ret = ocfs2_add_inode_data(OCFS2_SB(inode->i_sb), inode,
1259 &tmp_pos, 1, 0, wc->w_di_bh, 1259 &tmp_pos, 1, 0, wc->w_di_bh,
1260 wc->w_handle, data_ac, 1260 wc->w_handle, data_ac,
1261 meta_ac, NULL); 1261 meta_ac, NULL);
1262 /* 1262 /*
1263 * This shouldn't happen because we must have already 1263 * This shouldn't happen because we must have already
1264 * calculated the correct meta data allocation required. The 1264 * calculated the correct meta data allocation required. The