aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_vnode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2005-09-02 02:58:38 -0400
committerNathan Scott <nathans@sgi.com>2005-09-02 02:58:38 -0400
commit51c91ed52b8a9a30fcb2a465b40c20a1f11735ba (patch)
treeedebb01cbfe550a2edb066d5b4185445cfff11ba /fs/xfs/linux-2.6/xfs_vnode.h
parent592cb26bda6fe69838529acf71e50a6dee7acbb4 (diff)
[XFS] add infrastructure for waiting on I/O completion at inode reclaim
time SGI-PV: 934766 SGI-Modid: xfs-linux:xfs-kern:196854a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h
index 4a74569a5690..9977afa38900 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.h
+++ b/fs/xfs/linux-2.6/xfs_vnode.h
@@ -80,6 +80,7 @@ typedef struct vnode {
80 vnumber_t v_number; /* in-core vnode number */ 80 vnumber_t v_number; /* in-core vnode number */
81 vn_bhv_head_t v_bh; /* behavior head */ 81 vn_bhv_head_t v_bh; /* behavior head */
82 spinlock_t v_lock; /* VN_LOCK/VN_UNLOCK */ 82 spinlock_t v_lock; /* VN_LOCK/VN_UNLOCK */
83 atomic_t v_iocount; /* outstanding I/O count */
83#ifdef XFS_VNODE_TRACE 84#ifdef XFS_VNODE_TRACE
84 struct ktrace *v_trace; /* trace header structure */ 85 struct ktrace *v_trace; /* trace header structure */
85#endif 86#endif
@@ -506,6 +507,9 @@ extern int vn_revalidate(struct vnode *);
506extern void vn_revalidate_core(struct vnode *, vattr_t *); 507extern void vn_revalidate_core(struct vnode *, vattr_t *);
507extern void vn_remove(struct vnode *); 508extern void vn_remove(struct vnode *);
508 509
510extern void vn_iowait(struct vnode *vp);
511extern void vn_iowake(struct vnode *vp);
512
509static inline int vn_count(struct vnode *vp) 513static inline int vn_count(struct vnode *vp)
510{ 514{
511 return atomic_read(&LINVFS_GET_IP(vp)->i_count); 515 return atomic_read(&LINVFS_GET_IP(vp)->i_count);