diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.h | 14 |
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; | |||
22 | struct xfs_iomap; | 22 | struct xfs_iomap; |
23 | struct attrlist_cursor_kern; | 23 | struct attrlist_cursor_kern; |
24 | 24 | ||
25 | typedef 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); | |||
64 | extern void vn_iowake(struct xfs_inode *ip); | 62 | extern void vn_iowake(struct xfs_inode *ip); |
65 | extern void vn_ioerror(struct xfs_inode *ip, int error, char *f, int l); | 63 | extern void vn_ioerror(struct xfs_inode *ip, int error, char *f, int l); |
66 | 64 | ||
67 | static inline int vn_count(bhv_vnode_t *vp) | 65 | static 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 | ||
85 | static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp) | 83 | static 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 | */ |
93 | static inline int VN_BAD(bhv_vnode_t *vp) | 91 | static 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 | */ |
101 | static inline void vn_atime_to_bstime(bhv_vnode_t *vp, xfs_bstime_t *bs_atime) | 99 | static 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 | ||
107 | static inline void vn_atime_to_timespec(bhv_vnode_t *vp, struct timespec *ts) | 105 | static 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 | ||
112 | static inline void vn_atime_to_time_t(bhv_vnode_t *vp, time_t *tt) | 110 | static 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 | } |