aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
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
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')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_super.h2
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h14
4 files changed, 9 insertions, 11 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 1ca593fb1225..7605b071dc88 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -2038,7 +2038,7 @@ xfs_free_trace_bufs(void)
2038STATIC int __init 2038STATIC int __init
2039xfs_init_zones(void) 2039xfs_init_zones(void)
2040{ 2040{
2041 xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode", 2041 xfs_vnode_zone = kmem_zone_init_flags(sizeof(struct inode), "xfs_vnode",
2042 KM_ZONE_HWALIGN | KM_ZONE_RECLAIM | 2042 KM_ZONE_HWALIGN | KM_ZONE_RECLAIM |
2043 KM_ZONE_SPREAD, 2043 KM_ZONE_SPREAD,
2044 xfs_fs_inode_init_once); 2044 xfs_fs_inode_init_once);
diff --git a/fs/xfs/linux-2.6/xfs_super.h b/fs/xfs/linux-2.6/xfs_super.h
index b7d13da01bd6..57145fff3850 100644
--- a/fs/xfs/linux-2.6/xfs_super.h
+++ b/fs/xfs/linux-2.6/xfs_super.h
@@ -101,7 +101,7 @@ struct block_device;
101 101
102extern __uint64_t xfs_max_file_offset(unsigned int); 102extern __uint64_t xfs_max_file_offset(unsigned int);
103 103
104extern void xfs_initialize_vnode(struct xfs_mount *mp, bhv_vnode_t *vp, 104extern void xfs_initialize_vnode(struct xfs_mount *mp, struct inode *vp,
105 struct xfs_inode *ip); 105 struct xfs_inode *ip);
106 106
107extern void xfs_flush_inode(struct xfs_inode *); 107extern void xfs_flush_inode(struct xfs_inode *);
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c
index 1c5a34f5c3c0..5cad3274db02 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.c
+++ b/fs/xfs/linux-2.6/xfs_vnode.c
@@ -90,7 +90,7 @@ vn_ioerror(
90 */ 90 */
91static inline int xfs_icount(struct xfs_inode *ip) 91static inline int xfs_icount(struct xfs_inode *ip)
92{ 92{
93 bhv_vnode_t *vp = VFS_I(ip); 93 struct inode *vp = VFS_I(ip);
94 94
95 if (vp) 95 if (vp)
96 return vn_count(vp); 96 return vn_count(vp);
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}