diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-28 21:46:28 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 21:38:56 -0400 |
commit | b677c210cec0d6755335ffc01691982c417dd39e (patch) | |
tree | 9a61fdd81e48aac948346a096bed9c72e5f34114 /fs/xfs/xfs_vnodeops.c | |
parent | 09262b4339de5417a10803fbfac277eebb38ca5a (diff) |
[XFS] move v_iocount from bhv_vnode to xfs_inode
struct bhv_vnode is on it's way out, so move the I/O count to the XFS
inode.
SGI-PV: 969608
SGI-Modid: xfs-linux-melb:xfs-kern:29497a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 8ed7af3c5d63..e7ef78fb4da3 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -598,7 +598,7 @@ xfs_setattr( | |||
598 | } | 598 | } |
599 | 599 | ||
600 | /* wait for all I/O to complete */ | 600 | /* wait for all I/O to complete */ |
601 | vn_iowait(vp); | 601 | vn_iowait(ip); |
602 | 602 | ||
603 | if (!code) | 603 | if (!code) |
604 | code = xfs_itruncate_data(ip, vap->va_size); | 604 | code = xfs_itruncate_data(ip, vap->va_size); |
@@ -3683,7 +3683,7 @@ xfs_reclaim( | |||
3683 | return 0; | 3683 | return 0; |
3684 | } | 3684 | } |
3685 | 3685 | ||
3686 | vn_iowait(vp); | 3686 | vn_iowait(ip); |
3687 | 3687 | ||
3688 | ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0); | 3688 | ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0); |
3689 | 3689 | ||
@@ -4189,7 +4189,7 @@ xfs_free_file_space( | |||
4189 | need_iolock = 0; | 4189 | need_iolock = 0; |
4190 | if (need_iolock) { | 4190 | if (need_iolock) { |
4191 | xfs_ilock(ip, XFS_IOLOCK_EXCL); | 4191 | xfs_ilock(ip, XFS_IOLOCK_EXCL); |
4192 | vn_iowait(vp); /* wait for the completion of any pending DIOs */ | 4192 | vn_iowait(ip); /* wait for the completion of any pending DIOs */ |
4193 | } | 4193 | } |
4194 | 4194 | ||
4195 | rounding = max_t(uint, 1 << mp->m_sb.sb_blocklog, NBPP); | 4195 | rounding = max_t(uint, 1 << mp->m_sb.sb_blocklog, NBPP); |