diff options
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 7d3c4a7aa2dc..d964e21521ab 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -804,12 +804,8 @@ xfs_setattr( | |||
804 | if (vap->va_xflags & XFS_XFLAG_EXTSZINHERIT) | 804 | if (vap->va_xflags & XFS_XFLAG_EXTSZINHERIT) |
805 | di_flags |= XFS_DIFLAG_EXTSZINHERIT; | 805 | di_flags |= XFS_DIFLAG_EXTSZINHERIT; |
806 | } else if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) { | 806 | } else if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) { |
807 | if (vap->va_xflags & XFS_XFLAG_REALTIME) { | 807 | if (vap->va_xflags & XFS_XFLAG_REALTIME) |
808 | di_flags |= XFS_DIFLAG_REALTIME; | 808 | di_flags |= XFS_DIFLAG_REALTIME; |
809 | ip->i_iocore.io_flags |= XFS_IOCORE_RT; | ||
810 | } else { | ||
811 | ip->i_iocore.io_flags &= ~XFS_IOCORE_RT; | ||
812 | } | ||
813 | if (vap->va_xflags & XFS_XFLAG_EXTSIZE) | 809 | if (vap->va_xflags & XFS_XFLAG_EXTSIZE) |
814 | di_flags |= XFS_DIFLAG_EXTSIZE; | 810 | di_flags |= XFS_DIFLAG_EXTSIZE; |
815 | } | 811 | } |
@@ -3633,8 +3629,8 @@ xfs_set_dmattrs( | |||
3633 | xfs_ilock(ip, XFS_ILOCK_EXCL); | 3629 | xfs_ilock(ip, XFS_ILOCK_EXCL); |
3634 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); | 3630 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); |
3635 | 3631 | ||
3636 | ip->i_iocore.io_dmevmask = ip->i_d.di_dmevmask = evmask; | 3632 | ip->i_d.di_dmevmask = evmask; |
3637 | ip->i_iocore.io_dmstate = ip->i_d.di_dmstate = state; | 3633 | ip->i_d.di_dmstate = state; |
3638 | 3634 | ||
3639 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | 3635 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
3640 | IHOLD(ip); | 3636 | IHOLD(ip); |
@@ -4172,7 +4168,7 @@ xfs_free_file_space( | |||
4172 | ioffset = offset & ~(rounding - 1); | 4168 | ioffset = offset & ~(rounding - 1); |
4173 | 4169 | ||
4174 | if (VN_CACHED(vp) != 0) { | 4170 | if (VN_CACHED(vp) != 0) { |
4175 | xfs_inval_cached_trace(&ip->i_iocore, ioffset, -1, | 4171 | xfs_inval_cached_trace(ip, ioffset, -1, |
4176 | ctooff(offtoct(ioffset)), -1); | 4172 | ctooff(offtoct(ioffset)), -1); |
4177 | error = xfs_flushinval_pages(ip, | 4173 | error = xfs_flushinval_pages(ip, |
4178 | ctooff(offtoct(ioffset)), | 4174 | ctooff(offtoct(ioffset)), |