xfs: ensure that the inode uid/gid match values match the icdinode ones
Instead of only synchronizing the uid/gid values in xfs_setup_inode, ensure that they always match to prepare for removing the icdinode fields. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
committed by
Darrick J. Wong
parent
93baa55af1
commit
3d8f282150
@@ -223,7 +223,9 @@ xfs_inode_from_disk(
|
||||
|
||||
to->di_format = from->di_format;
|
||||
to->di_uid = be32_to_cpu(from->di_uid);
|
||||
inode->i_uid = xfs_uid_to_kuid(to->di_uid);
|
||||
to->di_gid = be32_to_cpu(from->di_gid);
|
||||
inode->i_gid = xfs_gid_to_kgid(to->di_gid);
|
||||
to->di_flushiter = be16_to_cpu(from->di_flushiter);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user