From: Darrick J. Wong <djwong@xxxxxxxxxx> 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 <djwong@xxxxxxxxxx> Reviewed-by: Christoph Hellwig <hch@xxxxxx> --- db/namei.c | 1 + repair/phase6.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/db/namei.c b/db/namei.c index 6de062161..41ccaa04b 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 1e985e7db..92a58db0d 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) */