diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-17 22:46:04 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-04 19:08:11 -0400 |
commit | f3868d0fa2e20d923087a8296fda47b0afe7f9ba (patch) | |
tree | d9a97217cd42d379cfa5b82a866071e3d1428a23 /fs/ocfs2/alloc.c | |
parent | d231129f44e7ead14f5f496e664ff1e3883a7b25 (diff) |
ocfs2: Teach ocfs2_replace_extent_rec() to use an extent_tree.
Don't use a struct inode anymore.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 85cd2adcc824..7b0f2cd9f66f 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -4983,8 +4983,8 @@ out: | |||
4983 | return ret; | 4983 | return ret; |
4984 | } | 4984 | } |
4985 | 4985 | ||
4986 | static int ocfs2_replace_extent_rec(struct inode *inode, | 4986 | static int ocfs2_replace_extent_rec(handle_t *handle, |
4987 | handle_t *handle, | 4987 | struct ocfs2_extent_tree *et, |
4988 | struct ocfs2_path *path, | 4988 | struct ocfs2_path *path, |
4989 | struct ocfs2_extent_list *el, | 4989 | struct ocfs2_extent_list *el, |
4990 | int split_index, | 4990 | int split_index, |
@@ -4992,7 +4992,7 @@ static int ocfs2_replace_extent_rec(struct inode *inode, | |||
4992 | { | 4992 | { |
4993 | int ret; | 4993 | int ret; |
4994 | 4994 | ||
4995 | ret = ocfs2_path_bh_journal_access(handle, INODE_CACHE(inode), path, | 4995 | ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, |
4996 | path_num_items(path) - 1); | 4996 | path_num_items(path) - 1); |
4997 | if (ret) { | 4997 | if (ret) { |
4998 | mlog_errno(ret); | 4998 | mlog_errno(ret); |
@@ -5095,8 +5095,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode, | |||
5095 | 5095 | ||
5096 | if (ctxt.c_contig_type == CONTIG_NONE) { | 5096 | if (ctxt.c_contig_type == CONTIG_NONE) { |
5097 | if (ctxt.c_split_covers_rec) | 5097 | if (ctxt.c_split_covers_rec) |
5098 | ret = ocfs2_replace_extent_rec(inode, handle, | 5098 | ret = ocfs2_replace_extent_rec(handle, et, path, el, |
5099 | path, el, | ||
5100 | split_index, split_rec); | 5099 | split_index, split_rec); |
5101 | else | 5100 | else |
5102 | ret = ocfs2_split_and_insert(handle, et, path, | 5101 | ret = ocfs2_split_and_insert(handle, et, path, |