Commit f3868d0f authored by Joel Becker's avatar Joel Becker

ocfs2: Teach ocfs2_replace_extent_rec() to use an extent_tree.

Don't use a struct inode anymore.
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent d231129f
...@@ -4983,8 +4983,8 @@ out: ...@@ -4983,8 +4983,8 @@ out:
return ret; return ret;
} }
static int ocfs2_replace_extent_rec(struct inode *inode, static int ocfs2_replace_extent_rec(handle_t *handle,
handle_t *handle, struct ocfs2_extent_tree *et,
struct ocfs2_path *path, struct ocfs2_path *path,
struct ocfs2_extent_list *el, struct ocfs2_extent_list *el,
int split_index, int split_index,
...@@ -4992,7 +4992,7 @@ static int ocfs2_replace_extent_rec(struct inode *inode, ...@@ -4992,7 +4992,7 @@ static int ocfs2_replace_extent_rec(struct inode *inode,
{ {
int ret; int ret;
ret = ocfs2_path_bh_journal_access(handle, INODE_CACHE(inode), path, ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path,
path_num_items(path) - 1); path_num_items(path) - 1);
if (ret) { if (ret) {
mlog_errno(ret); mlog_errno(ret);
...@@ -5095,8 +5095,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode, ...@@ -5095,8 +5095,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
if (ctxt.c_contig_type == CONTIG_NONE) { if (ctxt.c_contig_type == CONTIG_NONE) {
if (ctxt.c_split_covers_rec) if (ctxt.c_split_covers_rec)
ret = ocfs2_replace_extent_rec(inode, handle, ret = ocfs2_replace_extent_rec(handle, et, path, el,
path, el,
split_index, split_rec); split_index, split_rec);
else else
ret = ocfs2_split_and_insert(handle, et, path, ret = ocfs2_split_and_insert(handle, et, path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment