diff options
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index e74d13d3076b..d6277494e606 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -88,7 +88,7 @@ static inline struct inode *VFS_I(struct xfs_inode *ip) | |||
88 | */ | 88 | */ |
89 | static inline xfs_fsize_t XFS_ISIZE(struct xfs_inode *ip) | 89 | static inline xfs_fsize_t XFS_ISIZE(struct xfs_inode *ip) |
90 | { | 90 | { |
91 | if (S_ISREG(ip->i_d.di_mode)) | 91 | if (S_ISREG(VFS_I(ip)->i_mode)) |
92 | return i_size_read(VFS_I(ip)); | 92 | return i_size_read(VFS_I(ip)); |
93 | return ip->i_d.di_size; | 93 | return ip->i_d.di_size; |
94 | } | 94 | } |
@@ -369,7 +369,7 @@ static inline int xfs_isiflocked(struct xfs_inode *ip) | |||
369 | */ | 369 | */ |
370 | #define XFS_INHERIT_GID(pip) \ | 370 | #define XFS_INHERIT_GID(pip) \ |
371 | (((pip)->i_mount->m_flags & XFS_MOUNT_GRPID) || \ | 371 | (((pip)->i_mount->m_flags & XFS_MOUNT_GRPID) || \ |
372 | ((pip)->i_d.di_mode & S_ISGID)) | 372 | (VFS_I(pip)->i_mode & S_ISGID)) |
373 | 373 | ||
374 | int xfs_release(struct xfs_inode *ip); | 374 | int xfs_release(struct xfs_inode *ip); |
375 | void xfs_inactive(struct xfs_inode *ip); | 375 | void xfs_inactive(struct xfs_inode *ip); |