aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r--fs/xfs/xfs_ioctl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index cdd6c3156d53..81d6d6218803 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -963,7 +963,7 @@ xfs_set_diflags(
963 di_flags |= XFS_DIFLAG_NODEFRAG; 963 di_flags |= XFS_DIFLAG_NODEFRAG;
964 if (xflags & FS_XFLAG_FILESTREAM) 964 if (xflags & FS_XFLAG_FILESTREAM)
965 di_flags |= XFS_DIFLAG_FILESTREAM; 965 di_flags |= XFS_DIFLAG_FILESTREAM;
966 if (S_ISDIR(ip->i_d.di_mode)) { 966 if (S_ISDIR(VFS_I(ip)->i_mode)) {
967 if (xflags & FS_XFLAG_RTINHERIT) 967 if (xflags & FS_XFLAG_RTINHERIT)
968 di_flags |= XFS_DIFLAG_RTINHERIT; 968 di_flags |= XFS_DIFLAG_RTINHERIT;
969 if (xflags & FS_XFLAG_NOSYMLINKS) 969 if (xflags & FS_XFLAG_NOSYMLINKS)
@@ -972,7 +972,7 @@ xfs_set_diflags(
972 di_flags |= XFS_DIFLAG_EXTSZINHERIT; 972 di_flags |= XFS_DIFLAG_EXTSZINHERIT;
973 if (xflags & FS_XFLAG_PROJINHERIT) 973 if (xflags & FS_XFLAG_PROJINHERIT)
974 di_flags |= XFS_DIFLAG_PROJINHERIT; 974 di_flags |= XFS_DIFLAG_PROJINHERIT;
975 } else if (S_ISREG(ip->i_d.di_mode)) { 975 } else if (S_ISREG(VFS_I(ip)->i_mode)) {
976 if (xflags & FS_XFLAG_REALTIME) 976 if (xflags & FS_XFLAG_REALTIME)
977 di_flags |= XFS_DIFLAG_REALTIME; 977 di_flags |= XFS_DIFLAG_REALTIME;
978 if (xflags & FS_XFLAG_EXTSIZE) 978 if (xflags & FS_XFLAG_EXTSIZE)
@@ -1128,14 +1128,14 @@ xfs_ioctl_setattr_check_extsize(
1128{ 1128{
1129 struct xfs_mount *mp = ip->i_mount; 1129 struct xfs_mount *mp = ip->i_mount;
1130 1130
1131 if ((fa->fsx_xflags & FS_XFLAG_EXTSIZE) && !S_ISREG(ip->i_d.di_mode)) 1131 if ((fa->fsx_xflags & FS_XFLAG_EXTSIZE) && !S_ISREG(VFS_I(ip)->i_mode))
1132 return -EINVAL; 1132 return -EINVAL;
1133 1133
1134 if ((fa->fsx_xflags & FS_XFLAG_EXTSZINHERIT) && 1134 if ((fa->fsx_xflags & FS_XFLAG_EXTSZINHERIT) &&
1135 !S_ISDIR(ip->i_d.di_mode)) 1135 !S_ISDIR(VFS_I(ip)->i_mode))
1136 return -EINVAL; 1136 return -EINVAL;
1137 1137
1138 if (S_ISREG(ip->i_d.di_mode) && ip->i_d.di_nextents && 1138 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_d.di_nextents &&
1139 ((ip->i_d.di_extsize << mp->m_sb.sb_blocklog) != fa->fsx_extsize)) 1139 ((ip->i_d.di_extsize << mp->m_sb.sb_blocklog) != fa->fsx_extsize))
1140 return -EINVAL; 1140 return -EINVAL;
1141 1141
@@ -1256,9 +1256,9 @@ xfs_ioctl_setattr(
1256 * successful return from chown() 1256 * successful return from chown()
1257 */ 1257 */
1258 1258
1259 if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) && 1259 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) &&
1260 !capable_wrt_inode_uidgid(VFS_I(ip), CAP_FSETID)) 1260 !capable_wrt_inode_uidgid(VFS_I(ip), CAP_FSETID))
1261 ip->i_d.di_mode &= ~(S_ISUID|S_ISGID); 1261 VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID);
1262 1262
1263 /* Change the ownerships and register project quota modifications */ 1263 /* Change the ownerships and register project quota modifications */
1264 if (xfs_get_projid(ip) != fa->fsx_projid) { 1264 if (xfs_get_projid(ip) != fa->fsx_projid) {