diff options
author | Christoph Hellwig <hch@lst.de> | 2021-03-29 20:11:39 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-04-07 23:37:03 +0200 |
commit | ceaf603c7024d3c021803a3e90e893feda8d76e2 (patch) | |
tree | f7855b5fd1ecf3a262339818b8b20c68a048a9fe /fs/xfs/xfs_inode.h | |
parent | xfs: don't clear the "dinode core" in xfs_inode_alloc (diff) | |
download | linux-ceaf603c7024d3c021803a3e90e893feda8d76e2.tar.xz linux-ceaf603c7024d3c021803a3e90e893feda8d76e2.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index df5142767479..5eb1327b4409 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -54,6 +54,7 @@ typedef struct xfs_inode { /* Miscellaneous state. */ unsigned long i_flags; /* see defined flags below */ uint64_t i_delayed_blks; /* count of delay alloc blks */ + prid_t i_projid; /* owner's project id */ struct xfs_icdinode i_d; /* most of ondisk inode */ @@ -175,7 +176,7 @@ static inline prid_t xfs_get_initial_prid(struct xfs_inode *dp) { if (dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) - return dp->i_d.di_projid; + return dp->i_projid; return XFS_PROJID_DEFAULT; } |