Skip to content

Commit f3868d0

Browse files
author
Joel Becker
committed
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>
1 parent d231129 commit f3868d0

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎fs/ocfs2/alloc.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4983,16 +4983,16 @@ static int ocfs2_split_and_insert(handle_t *handle,
49834983
return ret;
49844984
}
49854985

4986-
static int ocfs2_replace_extent_rec(struct inode *inode,
4987-
handle_t *handle,
4986+
static int ocfs2_replace_extent_rec(handle_t *handle,
4987+
struct ocfs2_extent_tree *et,
49884988
struct ocfs2_path *path,
49894989
struct ocfs2_extent_list *el,
49904990
int split_index,
49914991
struct ocfs2_extent_rec *split_rec)
49924992
{
49934993
int ret;
49944994

4995-
ret = ocfs2_path_bh_journal_access(handle, INODE_CACHE(inode), path,
4995+
ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path,
49964996
path_num_items(path) - 1);
49974997
if (ret) {
49984998
mlog_errno(ret);
@@ -5095,8 +5095,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
50955095

50965096
if (ctxt.c_contig_type == CONTIG_NONE) {
50975097
if (ctxt.c_split_covers_rec)
5098-
ret = ocfs2_replace_extent_rec(inode, handle,
5099-
path, el,
5098+
ret = ocfs2_replace_extent_rec(handle, et, path, el,
51005099
split_index, split_rec);
51015100
else
51025101
ret = ocfs2_split_and_insert(handle, et, path,

0 commit comments

Comments
 (0)