Loading fs/ocfs2/alloc.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1134,7 +1134,7 @@ static int ocfs2_adjust_rightmost_branch(handle_t *handle, } } el = path_leaf_el(path); el = path_leaf_el(path); rec = &el->l_recs[le32_to_cpu(el->l_next_free_rec) - 1]; rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; ocfs2_adjust_rightmost_records(handle, et, path, rec); ocfs2_adjust_rightmost_records(handle, et, path, rec); Loading fs/ocfs2/refcounttree.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1036,14 +1036,14 @@ static int ocfs2_get_refcount_cpos_end(struct ocfs2_caching_info *ci, tmp_el = left_path->p_node[subtree_root].el; tmp_el = left_path->p_node[subtree_root].el; blkno = left_path->p_node[subtree_root+1].bh->b_blocknr; blkno = left_path->p_node[subtree_root+1].bh->b_blocknr; for (i = 0; i < le32_to_cpu(tmp_el->l_next_free_rec); i++) { for (i = 0; i < le16_to_cpu(tmp_el->l_next_free_rec); i++) { if (le64_to_cpu(tmp_el->l_recs[i].e_blkno) == blkno) { if (le64_to_cpu(tmp_el->l_recs[i].e_blkno) == blkno) { *cpos_end = le32_to_cpu(tmp_el->l_recs[i+1].e_cpos); *cpos_end = le32_to_cpu(tmp_el->l_recs[i+1].e_cpos); break; break; } } } } BUG_ON(i == le32_to_cpu(tmp_el->l_next_free_rec)); BUG_ON(i == le16_to_cpu(tmp_el->l_next_free_rec)); out: out: ocfs2_free_path(left_path); ocfs2_free_path(left_path); Loading Loading
fs/ocfs2/alloc.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1134,7 +1134,7 @@ static int ocfs2_adjust_rightmost_branch(handle_t *handle, } } el = path_leaf_el(path); el = path_leaf_el(path); rec = &el->l_recs[le32_to_cpu(el->l_next_free_rec) - 1]; rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; ocfs2_adjust_rightmost_records(handle, et, path, rec); ocfs2_adjust_rightmost_records(handle, et, path, rec); Loading
fs/ocfs2/refcounttree.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1036,14 +1036,14 @@ static int ocfs2_get_refcount_cpos_end(struct ocfs2_caching_info *ci, tmp_el = left_path->p_node[subtree_root].el; tmp_el = left_path->p_node[subtree_root].el; blkno = left_path->p_node[subtree_root+1].bh->b_blocknr; blkno = left_path->p_node[subtree_root+1].bh->b_blocknr; for (i = 0; i < le32_to_cpu(tmp_el->l_next_free_rec); i++) { for (i = 0; i < le16_to_cpu(tmp_el->l_next_free_rec); i++) { if (le64_to_cpu(tmp_el->l_recs[i].e_blkno) == blkno) { if (le64_to_cpu(tmp_el->l_recs[i].e_blkno) == blkno) { *cpos_end = le32_to_cpu(tmp_el->l_recs[i+1].e_cpos); *cpos_end = le32_to_cpu(tmp_el->l_recs[i+1].e_cpos); break; break; } } } } BUG_ON(i == le32_to_cpu(tmp_el->l_next_free_rec)); BUG_ON(i == le16_to_cpu(tmp_el->l_next_free_rec)); out: out: ocfs2_free_path(left_path); ocfs2_free_path(left_path); Loading