Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165085
b: refs/heads/master
c: d562862
h: refs/heads/master
i:
  165083: 14f912d
v: v3
  • Loading branch information
Joel Becker committed Sep 4, 2009
1 parent fcb8c83 commit b773e13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c911eefca316f580f174940cd67d561b4b7e6e8
refs/heads/master: d562862314a7b131a630f7b912490312387542fb
19 changes: 10 additions & 9 deletions trunk/fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3809,10 +3809,10 @@ static void ocfs2_subtract_from_rec(struct super_block *sb,
* list. If this leaf is part of an allocation tree, it is assumed
* that the tree above has been prepared.
*/
static void ocfs2_insert_at_leaf(struct ocfs2_extent_rec *insert_rec,
static void ocfs2_insert_at_leaf(struct ocfs2_extent_tree *et,
struct ocfs2_extent_rec *insert_rec,
struct ocfs2_extent_list *el,
struct ocfs2_insert_type *insert,
struct inode *inode)
struct ocfs2_insert_type *insert)
{
int i = insert->ins_contig_index;
unsigned int range;
Expand All @@ -3824,7 +3824,8 @@ static void ocfs2_insert_at_leaf(struct ocfs2_extent_rec *insert_rec,
i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos));
BUG_ON(i == -1);
rec = &el->l_recs[i];
ocfs2_subtract_from_rec(inode->i_sb, insert->ins_split, rec,
ocfs2_subtract_from_rec(ocfs2_metadata_cache_get_super(et->et_ci),
insert->ins_split, rec,
insert_rec);
goto rotate;
}
Expand Down Expand Up @@ -3866,10 +3867,10 @@ static void ocfs2_insert_at_leaf(struct ocfs2_extent_rec *insert_rec,

mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >=
le16_to_cpu(el->l_count),
"inode %lu, depth %u, count %u, next free %u, "
"owner %llu, depth %u, count %u, next free %u, "
"rec.cpos %u, rec.clusters %u, "
"insert.cpos %u, insert.clusters %u\n",
inode->i_ino,
ocfs2_metadata_cache_owner(et->et_ci),
le16_to_cpu(el->l_tree_depth),
le16_to_cpu(el->l_count),
le16_to_cpu(el->l_next_free_rec),
Expand Down Expand Up @@ -4171,8 +4172,8 @@ static int ocfs2_insert_path(struct inode *inode,
if (ret)
mlog_errno(ret);
} else
ocfs2_insert_at_leaf(insert_rec, path_leaf_el(right_path),
insert, inode);
ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path),
insert);

ret = ocfs2_journal_dirty(handle, leaf_bh);
if (ret)
Expand Down Expand Up @@ -4218,7 +4219,7 @@ static int ocfs2_do_insert_extent(struct inode *inode,
}

if (le16_to_cpu(el->l_tree_depth) == 0) {
ocfs2_insert_at_leaf(insert_rec, el, type, inode);
ocfs2_insert_at_leaf(et, insert_rec, el, type);
goto out_update_clusters;
}

Expand Down

0 comments on commit b773e13

Please sign in to comment.