Commit c495dd24 authored by Joel Becker's avatar Joel Becker

ocfs2: ocfs2_try_to_merge_extent() doesn't need struct inode.

It's not using it, so remove it from the parameter list.
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 4fe82c31
...@@ -3623,15 +3623,13 @@ out: ...@@ -3623,15 +3623,13 @@ out:
return ret; return ret;
} }
static int ocfs2_try_to_merge_extent(struct inode *inode, static int ocfs2_try_to_merge_extent(handle_t *handle,
handle_t *handle, struct ocfs2_extent_tree *et,
struct ocfs2_path *path, struct ocfs2_path *path,
int split_index, int split_index,
struct ocfs2_extent_rec *split_rec, struct ocfs2_extent_rec *split_rec,
struct ocfs2_cached_dealloc_ctxt *dealloc, struct ocfs2_cached_dealloc_ctxt *dealloc,
struct ocfs2_merge_ctxt *ctxt, struct ocfs2_merge_ctxt *ctxt)
struct ocfs2_extent_tree *et)
{ {
int ret = 0; int ret = 0;
struct ocfs2_extent_list *el = path_leaf_el(path); struct ocfs2_extent_list *el = path_leaf_el(path);
...@@ -5069,9 +5067,9 @@ static int __ocfs2_mark_extent_written(struct inode *inode, ...@@ -5069,9 +5067,9 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
if (ret) if (ret)
mlog_errno(ret); mlog_errno(ret);
} else { } else {
ret = ocfs2_try_to_merge_extent(inode, handle, path, ret = ocfs2_try_to_merge_extent(handle, et, path,
split_index, split_rec, split_index, split_rec,
dealloc, &ctxt, et); dealloc, &ctxt);
if (ret) if (ret)
mlog_errno(ret); mlog_errno(ret);
} }
......
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