mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
93baa55af1
commit
3d8f282150
4 changed files with 12 additions and 5 deletions
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue