aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_vnode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-08-13 02:22:40 -0400
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-08-13 02:22:40 -0400
commit5ec7f8c7d14a3ea6bf920b3350f5c5d3527cb837 (patch)
tree3fa7d041b51027af39800ebccef63fb12af94f9d /fs/xfs/linux-2.6/xfs_vnode.h
parentdf80c933f9eb01a7af3812bbe437e38205386304 (diff)
[XFS] kill bhv_vnode_t
All remaining bhv_vnode_t instance are in code that's more or less Linux specific. (Well, for xfs_acl.c that could be argued, but that code is on the removal list, too). So just do an s/bhv_vnode_t/struct inode/ over the whole tree. We can clean up variable naming and some useless helpers later. SGI-PV: 981498 SGI-Modid: xfs-linux-melb:xfs-kern:31781a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h
index 0d7eac03bdf0..683ce16210ff 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.h
+++ b/fs/xfs/linux-2.6/xfs_vnode.h
@@ -22,8 +22,6 @@ struct file;
22struct xfs_iomap; 22struct xfs_iomap;
23struct attrlist_cursor_kern; 23struct attrlist_cursor_kern;
24 24
25typedef struct inode bhv_vnode_t;
26
27/* 25/*
28 * Return values for xfs_inactive. A return value of 26 * Return values for xfs_inactive. A return value of
29 * VN_INACTIVE_NOCACHE implies that the file system behavior 27 * VN_INACTIVE_NOCACHE implies that the file system behavior
@@ -64,7 +62,7 @@ extern void vn_iowait(struct xfs_inode *ip);
64extern void vn_iowake(struct xfs_inode *ip); 62extern void vn_iowake(struct xfs_inode *ip);
65extern void vn_ioerror(struct xfs_inode *ip, int error, char *f, int l); 63extern void vn_ioerror(struct xfs_inode *ip, int error, char *f, int l);
66 64
67static inline int vn_count(bhv_vnode_t *vp) 65static inline int vn_count(struct inode *vp)
68{ 66{
69 return atomic_read(&vp->i_count); 67 return atomic_read(&vp->i_count);
70} 68}
@@ -82,7 +80,7 @@ do { \
82 iput(VFS_I(ip)); \ 80 iput(VFS_I(ip)); \
83} while (0) 81} while (0)
84 82
85static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp) 83static inline struct inode *vn_grab(struct inode *vp)
86{ 84{
87 return igrab(vp); 85 return igrab(vp);
88} 86}
@@ -90,7 +88,7 @@ static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp)
90/* 88/*
91 * Dealing with bad inodes 89 * Dealing with bad inodes
92 */ 90 */
93static inline int VN_BAD(bhv_vnode_t *vp) 91static inline int VN_BAD(struct inode *vp)
94{ 92{
95 return is_bad_inode(vp); 93 return is_bad_inode(vp);
96} 94}
@@ -98,18 +96,18 @@ static inline int VN_BAD(bhv_vnode_t *vp)
98/* 96/*
99 * Extracting atime values in various formats 97 * Extracting atime values in various formats
100 */ 98 */
101static inline void vn_atime_to_bstime(bhv_vnode_t *vp, xfs_bstime_t *bs_atime) 99static inline void vn_atime_to_bstime(struct inode *vp, xfs_bstime_t *bs_atime)
102{ 100{
103 bs_atime->tv_sec = vp->i_atime.tv_sec; 101 bs_atime->tv_sec = vp->i_atime.tv_sec;
104 bs_atime->tv_nsec = vp->i_atime.tv_nsec; 102 bs_atime->tv_nsec = vp->i_atime.tv_nsec;
105} 103}
106 104
107static inline void vn_atime_to_timespec(bhv_vnode_t *vp, struct timespec *ts) 105static inline void vn_atime_to_timespec(struct inode *vp, struct timespec *ts)
108{ 106{
109 *ts = vp->i_atime; 107 *ts = vp->i_atime;
110} 108}
111 109
112static inline void vn_atime_to_time_t(bhv_vnode_t *vp, time_t *tt) 110static inline void vn_atime_to_time_t(struct inode *vp, time_t *tt)
113{ 111{
114 *tt = vp->i_atime.tv_sec; 112 *tt = vp->i_atime.tv_sec;
115} 113}