Skip to content

Commit 840265f

Browse files
Damenlyakpm00
authored andcommitted
ocfs2: remove parameter parent_fe_bh from __ocfs2_mknod_locked
The parameter is not used in __ocfs2_mknod_locked(). So remove it. No functional change. Link: https://lkml.kernel.org/r/20250106140634.92241-1-glass.su@suse.com Signed-off-by: Su Yue <glass.su@suse.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Jun Piao <piaojun@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 276c613 commit 840265f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

fs/ocfs2/namei.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ static int __ocfs2_mknod_locked(struct inode *dir,
508508
struct inode *inode,
509509
dev_t dev,
510510
struct buffer_head **new_fe_bh,
511-
struct buffer_head *parent_fe_bh,
512511
handle_t *handle,
513512
struct ocfs2_alloc_context *inode_ac,
514513
u64 fe_blkno, u64 suballoc_loc, u16 suballoc_bit)
@@ -641,8 +640,8 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb,
641640
}
642641

643642
return __ocfs2_mknod_locked(dir, inode, dev, new_fe_bh,
644-
parent_fe_bh, handle, inode_ac,
645-
fe_blkno, suballoc_loc, suballoc_bit);
643+
handle, inode_ac, fe_blkno,
644+
suballoc_loc, suballoc_bit);
646645
}
647646

648647
static int ocfs2_mkdir(struct mnt_idmap *idmap,
@@ -2576,7 +2575,7 @@ int ocfs2_create_inode_in_orphan(struct inode *dir,
25762575
clear_nlink(inode);
25772576
/* do the real work now. */
25782577
status = __ocfs2_mknod_locked(dir, inode,
2579-
0, &new_di_bh, parent_di_bh, handle,
2578+
0, &new_di_bh, handle,
25802579
inode_ac, di_blkno, suballoc_loc,
25812580
suballoc_bit);
25822581
if (status < 0) {

0 commit comments

Comments
 (0)