xfs: move the di_projid field to struct xfs_inode
In preparation of removing the historic icinode struct, move the projid field into the containing xfs_inode structure. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
committed by
Darrick J. Wong
parent
7e2a8af528
commit
ceaf603c70
@@ -809,7 +809,7 @@ xfs_init_new_inode(
|
||||
inode = VFS_I(ip);
|
||||
set_nlink(inode, nlink);
|
||||
inode->i_rdev = rdev;
|
||||
ip->i_d.di_projid = prid;
|
||||
ip->i_projid = prid;
|
||||
|
||||
if (dir && !(dir->i_mode & S_ISGID) &&
|
||||
(mp->m_flags & XFS_MOUNT_GRPID)) {
|
||||
@@ -1288,7 +1288,7 @@ xfs_link(
|
||||
* the tree quota mechanism could be circumvented.
|
||||
*/
|
||||
if (unlikely((tdp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) &&
|
||||
tdp->i_d.di_projid != sip->i_d.di_projid)) {
|
||||
tdp->i_projid != sip->i_projid)) {
|
||||
error = -EXDEV;
|
||||
goto error_return;
|
||||
}
|
||||
@@ -3126,7 +3126,7 @@ xfs_rename(
|
||||
* tree quota mechanism would be circumvented.
|
||||
*/
|
||||
if (unlikely((target_dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) &&
|
||||
target_dp->i_d.di_projid != src_ip->i_d.di_projid)) {
|
||||
target_dp->i_projid != src_ip->i_projid)) {
|
||||
error = -EXDEV;
|
||||
goto out_trans_cancel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user