Skip to content

Commit a1cf076

Browse files
author
Joel Becker
committed
ocfs2: __ocfs2_mark_extent_written() doesn't need struct inode.
We only allow unwritten extents on data, so the toplevel ocfs2_mark_extent_written() can use an inode all it wants. But the subfunction isn't even using the inode argument. Signed-off-by: Joel Becker <joel.becker@oracle.com>
1 parent f3868d0 commit a1cf076

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎fs/ocfs2/alloc.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5026,9 +5026,8 @@ static int ocfs2_replace_extent_rec(handle_t *handle,
50265026
* have been brought into cache (and pinned via the journal), so the
50275027
* extra overhead is not expressed in terms of disk reads.
50285028
*/
5029-
static int __ocfs2_mark_extent_written(struct inode *inode,
5029+
static int __ocfs2_mark_extent_written(handle_t *handle,
50305030
struct ocfs2_extent_tree *et,
5031-
handle_t *handle,
50325031
struct ocfs2_path *path,
50335032
int split_index,
50345033
struct ocfs2_extent_rec *split_rec,
@@ -5062,7 +5061,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
50625061

50635062
/*
50645063
* The core merge / split code wants to know how much room is
5065-
* left in this inodes allocation tree, so we pass the
5064+
* left in this allocation tree, so we pass the
50665065
* rightmost extent list.
50675066
*/
50685067
if (path->p_tree_depth) {
@@ -5185,7 +5184,7 @@ int ocfs2_mark_extent_written(struct inode *inode,
51855184
split_rec.e_flags = path_leaf_el(left_path)->l_recs[index].e_flags;
51865185
split_rec.e_flags &= ~OCFS2_EXT_UNWRITTEN;
51875186

5188-
ret = __ocfs2_mark_extent_written(inode, et, handle, left_path,
5187+
ret = __ocfs2_mark_extent_written(handle, et, left_path,
51895188
index, &split_rec, meta_ac,
51905189
dealloc);
51915190
if (ret)

0 commit comments

Comments
 (0)