mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +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
|
@ -289,6 +289,8 @@ xfs_reinit_inode(
|
|||
uint64_t version = inode_peek_iversion(inode);
|
||||
umode_t mode = inode->i_mode;
|
||||
dev_t dev = inode->i_rdev;
|
||||
kuid_t uid = inode->i_uid;
|
||||
kgid_t gid = inode->i_gid;
|
||||
|
||||
error = inode_init_always(mp->m_super, inode);
|
||||
|
||||
|
@ -297,6 +299,8 @@ xfs_reinit_inode(
|
|||
inode_set_iversion_queried(inode, version);
|
||||
inode->i_mode = mode;
|
||||
inode->i_rdev = dev;
|
||||
inode->i_uid = uid;
|
||||
inode->i_gid = gid;
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue