diff options
Diffstat (limited to 'fs/xfs/xfs_inode.h')
| -rw-r--r-- | fs/xfs/xfs_inode.h | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 65e2350f449c..396cc1fafd0d 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h  | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | #include "xfs_inode_buf.h" | 21 | #include "xfs_inode_buf.h" | 
| 22 | #include "xfs_inode_fork.h" | 22 | #include "xfs_inode_fork.h" | 
| 23 | #include "xfs_dinode.h" | ||
| 23 | 24 | ||
| 24 | /* | 25 | /* | 
| 25 | * Kernel only inode definitions | 26 | * Kernel only inode definitions | 
| @@ -192,6 +193,15 @@ xfs_set_projid(struct xfs_inode *ip, | |||
| 192 | ip->i_d.di_projid_lo = (__uint16_t) (projid & 0xffff); | 193 | ip->i_d.di_projid_lo = (__uint16_t) (projid & 0xffff); | 
| 193 | } | 194 | } | 
| 194 | 195 | ||
| 196 | static inline prid_t | ||
| 197 | xfs_get_initial_prid(struct xfs_inode *dp) | ||
| 198 | { | ||
| 199 | if (dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) | ||
| 200 | return xfs_get_projid(dp); | ||
| 201 | |||
| 202 | return XFS_PROJID_DEFAULT; | ||
| 203 | } | ||
| 204 | |||
| 195 | /* | 205 | /* | 
| 196 | * In-core inode flags. | 206 | * In-core inode flags. | 
| 197 | */ | 207 | */ | 
| @@ -323,6 +333,8 @@ int xfs_lookup(struct xfs_inode *dp, struct xfs_name *name, | |||
| 323 | struct xfs_inode **ipp, struct xfs_name *ci_name); | 333 | struct xfs_inode **ipp, struct xfs_name *ci_name); | 
| 324 | int xfs_create(struct xfs_inode *dp, struct xfs_name *name, | 334 | int xfs_create(struct xfs_inode *dp, struct xfs_name *name, | 
| 325 | umode_t mode, xfs_dev_t rdev, struct xfs_inode **ipp); | 335 | umode_t mode, xfs_dev_t rdev, struct xfs_inode **ipp); | 
| 336 | int xfs_create_tmpfile(struct xfs_inode *dp, struct dentry *dentry, | ||
| 337 | umode_t mode); | ||
| 326 | int xfs_remove(struct xfs_inode *dp, struct xfs_name *name, | 338 | int xfs_remove(struct xfs_inode *dp, struct xfs_name *name, | 
| 327 | struct xfs_inode *ip); | 339 | struct xfs_inode *ip); | 
| 328 | int xfs_link(struct xfs_inode *tdp, struct xfs_inode *sip, | 340 | int xfs_link(struct xfs_inode *tdp, struct xfs_inode *sip, | 
