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>
このコミットが含まれているのは:
@@ -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);
|
||||
|
新しいイシューから参照
ユーザーをブロックする