diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-10-11 03:44:08 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 00:48:58 -0500 |
commit | 613d70436c1aeda6843ca8b70c7fab6d0484a591 (patch) | |
tree | e8cc8d1f2cf3720285f0439c9d057555ab293b0c /fs/xfs/xfs_vnodeops.c | |
parent | 007c61c68640ea17c036785b698d05da67b4365e (diff) |
[XFS] kill xfs_iocore_t
xfs_iocore_t is a structure embedded in xfs_inode. Except for one field it
just duplicates fields already in xfs_inode, and there is nothing this
abstraction buys us on XFS/Linux. This patch removes it and shrinks source
and binary size of xfs aswell as shrinking the size of xfs_inode by 60/44
bytes in debug/non-debug builds.
SGI-PV: 970852
SGI-Modid: xfs-linux-melb:xfs-kern:29754a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
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)), |