search for: ocfs2_adjust_new_end

Displaying 1 result from an estimated 1 matches for "ocfs2_adjust_new_end".

2009 Jun 02
1
[PATCH] ocfs2: Adjust rightmost path in ocfs2_add_branch.
...eset the actual path elements so that we can re-use the structure * to build another path. Generally, this involves freeing the buffer @@ -1012,6 +1014,75 @@ static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) ocfs2_rec_clusters(el, &el->l_recs[i]); } +static int ocfs2_adjust_new_end(handle_t *handle, + struct inode *inode, + struct ocfs2_extent_tree *et, + u32 new_end) +{ + int status, i; + struct ocfs2_path *path = NULL; + struct ocfs2_extent_list *el; + struct ocfs2_extent_rec *rec; + + path = ocfs2_new_path_from_et(et); + if (!path) { + status = -ENOMEM; + return...