mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
xfs: mode di_mode to vfs inode
Move the di_mode value from the xfs_icdinode to the VFS inode, reducing the xfs_icdinode byte another 2 bytes and collapsing another 2 byte hole in the structure. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
83e06f21b4
commit
c19b3b05ae
18 changed files with 71 additions and 73 deletions
|
@ -88,7 +88,7 @@ static inline struct inode *VFS_I(struct xfs_inode *ip)
|
|||
*/
|
||||
static inline xfs_fsize_t XFS_ISIZE(struct xfs_inode *ip)
|
||||
{
|
||||
if (S_ISREG(ip->i_d.di_mode))
|
||||
if (S_ISREG(VFS_I(ip)->i_mode))
|
||||
return i_size_read(VFS_I(ip));
|
||||
return ip->i_d.di_size;
|
||||
}
|
||||
|
@ -369,7 +369,7 @@ static inline int xfs_isiflocked(struct xfs_inode *ip)
|
|||
*/
|
||||
#define XFS_INHERIT_GID(pip) \
|
||||
(((pip)->i_mount->m_flags & XFS_MOUNT_GRPID) || \
|
||||
((pip)->i_d.di_mode & S_ISGID))
|
||||
(VFS_I(pip)->i_mode & S_ISGID))
|
||||
|
||||
int xfs_release(struct xfs_inode *ip);
|
||||
void xfs_inactive(struct xfs_inode *ip);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue