From: Darrick J. Wong Date: Mon, 29 Jul 2024 23:23:02 +0000 (-0700) Subject: xfs_{db,repair}: add an explicit owner field to xfs_da_args X-Git-Tag: v6.10.0~22^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e74984e652fab200bc7319d7c3d90f6ae36be2e;p=thirdparty%2Fxfsprogs-dev.git xfs_{db,repair}: add an explicit owner field to xfs_da_args Update these two utilities to set the owner field of the da args structure prior to calling directory and extended attribute functions. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/db/namei.c b/db/namei.c index 6de06216..41ccaa04 100644 --- a/db/namei.c +++ b/db/namei.c @@ -447,6 +447,7 @@ listdir( struct xfs_da_args args = { .dp = dp, .geo = dp->i_mount->m_dir_geo, + .owner = dp->i_ino, }; int error; diff --git a/repair/phase6.c b/repair/phase6.c index 1e985e7d..92a58db0 100644 --- a/repair/phase6.c +++ b/repair/phase6.c @@ -1401,6 +1401,7 @@ dir2_kill_block( args.trans = tp; args.whichfork = XFS_DATA_FORK; args.geo = mp->m_dir_geo; + args.owner = ip->i_ino; if (da_bno >= mp->m_dir_geo->leafblk && da_bno < mp->m_dir_geo->freeblk) error = -libxfs_da_shrink_inode(&args, da_bno, bp); else @@ -1505,6 +1506,7 @@ longform_dir2_entry_check_data( struct xfs_da_args da = { .dp = ip, .geo = mp->m_dir_geo, + .owner = ip->i_ino, }; @@ -2294,6 +2296,7 @@ longform_dir2_entry_check( /* is this a block, leaf, or node directory? */ args.dp = ip; args.geo = mp->m_dir_geo; + args.owner = ip->i_ino; fmt = libxfs_dir2_format(&args, &error); /* check directory "data" blocks (ie. name/inode pairs) */