diff options
author | Tao Ma <tao.ma@oracle.com> | 2008-08-18 05:38:45 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-10-13 16:57:59 -0400 |
commit | 0eb8d47e69a2211a36643b180f1843ef45f6017d (patch) | |
tree | 745a063238cbcf6af84644bd51d4bfcd592e06a1 /fs/ocfs2/dir.c | |
parent | e7d4cb6bc19658646357eeff134645cd9bc3479f (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/dir.c')
-rw-r--r-- | fs/ocfs2/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index ba0fb9e16264..d17c34b0ac6b 100644 --- a/fs/ocfs2/dir.c +++ b/fs/ocfs2/dir.c | |||
@@ -1383,9 +1383,9 @@ static int ocfs2_do_extend_dir(struct super_block *sb, | |||
1383 | if (extend) { | 1383 | if (extend) { |
1384 | u32 offset = OCFS2_I(dir)->ip_clusters; | 1384 | u32 offset = OCFS2_I(dir)->ip_clusters; |
1385 | 1385 | ||
1386 | status = ocfs2_do_extend_allocation(OCFS2_SB(sb), dir, &offset, | 1386 | status = ocfs2_add_inode_data(OCFS2_SB(sb), dir, &offset, |
1387 | 1, 0, parent_fe_bh, handle, | 1387 | 1, 0, parent_fe_bh, handle, |
1388 | data_ac, meta_ac, NULL); | 1388 | data_ac, meta_ac, NULL); |
1389 | BUG_ON(status == -EAGAIN); | 1389 | BUG_ON(status == -EAGAIN); |
1390 | if (status < 0) { | 1390 | if (status < 0) { |
1391 | mlog_errno(status); | 1391 | mlog_errno(status); |