diff options
author | Nathan Scott <nathans@sgi.com> | 2006-06-09 03:07:12 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-06-09 03:07:12 -0400 |
commit | 8285fb58e75bfdb447c7a2c533ec9efdb238f966 (patch) | |
tree | 4bcfa74d3328ff5d71437556d24019be98c1d9fa /fs/xfs/linux-2.6/xfs_vnode.h | |
parent | 67fcaa73adafb19139a7cd8ab133592b6a0a0901 (diff) |
[XFS] Resolve a namespace collision on remaining vtypes for FreeBSD
porters.
SGI-PV: 953338
SGI-Modid: xfs-linux-melb:xfs-kern:26108a
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.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h index cb16774aea73..35c6a01963a7 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.h +++ b/fs/xfs/linux-2.6/xfs_vnode.h | |||
@@ -20,29 +20,29 @@ | |||
20 | 20 | ||
21 | struct uio; | 21 | struct uio; |
22 | struct file; | 22 | struct file; |
23 | struct vattr; | 23 | struct bhv_vfs; |
24 | struct bhv_vattr; | ||
24 | struct xfs_iomap; | 25 | struct xfs_iomap; |
25 | struct attrlist_cursor_kern; | 26 | struct attrlist_cursor_kern; |
26 | 27 | ||
27 | typedef xfs_ino_t vnumber_t; | 28 | typedef struct dentry bhv_vname_t; |
28 | typedef struct dentry vname_t; | 29 | typedef __u64 bhv_vnumber_t; |
29 | typedef bhv_head_t vn_bhv_head_t; | ||
30 | 30 | ||
31 | typedef enum vflags { | 31 | typedef enum bhv_vflags { |
32 | VMODIFIED = 0x08, /* XFS inode state possibly differs */ | 32 | VMODIFIED = 0x08, /* XFS inode state possibly differs */ |
33 | /* to the Linux inode state. */ | 33 | /* to the Linux inode state. */ |
34 | VTRUNCATED = 0x40, /* truncated down so flush-on-close */ | 34 | VTRUNCATED = 0x40, /* truncated down so flush-on-close */ |
35 | } vflags_t; | 35 | } bhv_vflags_t; |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * MP locking protocols: | 38 | * MP locking protocols: |
39 | * v_flag, v_vfsp VN_LOCK/VN_UNLOCK | 39 | * v_flag, v_vfsp VN_LOCK/VN_UNLOCK |
40 | */ | 40 | */ |
41 | typedef struct bhv_vnode { | 41 | typedef struct bhv_vnode { |
42 | vflags_t v_flag; /* vnode flags (see above) */ | 42 | bhv_vflags_t v_flag; /* vnode flags (see above) */ |
43 | struct bhv_vfs *v_vfsp; /* ptr to containing VFS */ | 43 | bhv_vfs_t *v_vfsp; /* ptr to containing VFS */ |
44 | vnumber_t v_number; /* in-core vnode number */ | 44 | bhv_vnumber_t v_number; /* in-core vnode number */ |
45 | vn_bhv_head_t v_bh; /* behavior head */ | 45 | bhv_head_t v_bh; /* behavior head */ |
46 | spinlock_t v_lock; /* VN_LOCK/VN_UNLOCK */ | 46 | spinlock_t v_lock; /* VN_LOCK/VN_UNLOCK */ |
47 | atomic_t v_iocount; /* outstanding I/O count */ | 47 | atomic_t v_iocount; /* outstanding I/O count */ |
48 | #ifdef XFS_VNODE_TRACE | 48 | #ifdef XFS_VNODE_TRACE |
@@ -103,14 +103,14 @@ static inline struct inode *vn_to_inode(struct bhv_vnode *vnode) | |||
103 | /* | 103 | /* |
104 | * Values for the vop_rwlock/rwunlock flags parameter. | 104 | * Values for the vop_rwlock/rwunlock flags parameter. |
105 | */ | 105 | */ |
106 | typedef enum vrwlock { | 106 | typedef enum bhv_vrwlock { |
107 | VRWLOCK_NONE, | 107 | VRWLOCK_NONE, |
108 | VRWLOCK_READ, | 108 | VRWLOCK_READ, |
109 | VRWLOCK_WRITE, | 109 | VRWLOCK_WRITE, |
110 | VRWLOCK_WRITE_DIRECT, | 110 | VRWLOCK_WRITE_DIRECT, |
111 | VRWLOCK_TRY_READ, | 111 | VRWLOCK_TRY_READ, |
112 | VRWLOCK_TRY_WRITE | 112 | VRWLOCK_TRY_WRITE |
113 | } vrwlock_t; | 113 | } bhv_vrwlock_t; |
114 | 114 | ||
115 | /* | 115 | /* |
116 | * Return values for bhv_vop_inactive. A return value of | 116 | * Return values for bhv_vop_inactive. A return value of |
@@ -123,13 +123,13 @@ typedef enum vrwlock { | |||
123 | /* | 123 | /* |
124 | * Values for the cmd code given to vop_vnode_change. | 124 | * Values for the cmd code given to vop_vnode_change. |
125 | */ | 125 | */ |
126 | typedef enum vchange { | 126 | typedef enum bhv_vchange { |
127 | VCHANGE_FLAGS_FRLOCKS = 0, | 127 | VCHANGE_FLAGS_FRLOCKS = 0, |
128 | VCHANGE_FLAGS_ENF_LOCKING = 1, | 128 | VCHANGE_FLAGS_ENF_LOCKING = 1, |
129 | VCHANGE_FLAGS_TRUNCATED = 2, | 129 | VCHANGE_FLAGS_TRUNCATED = 2, |
130 | VCHANGE_FLAGS_PAGE_DIRTY = 3, | 130 | VCHANGE_FLAGS_PAGE_DIRTY = 3, |
131 | VCHANGE_FLAGS_IOEXCL_COUNT = 4 | 131 | VCHANGE_FLAGS_IOEXCL_COUNT = 4 |
132 | } vchange_t; | 132 | } bhv_vchange_t; |
133 | 133 | ||
134 | typedef enum { L_FALSE, L_TRUE } lastclose_t; | 134 | typedef enum { L_FALSE, L_TRUE } lastclose_t; |
135 | 135 | ||
@@ -152,26 +152,26 @@ typedef ssize_t (*vop_splice_write_t)(bhv_desc_t *, struct pipe_inode_info *, | |||
152 | struct cred *); | 152 | struct cred *); |
153 | typedef int (*vop_ioctl_t)(bhv_desc_t *, struct inode *, struct file *, | 153 | typedef int (*vop_ioctl_t)(bhv_desc_t *, struct inode *, struct file *, |
154 | int, unsigned int, void __user *); | 154 | int, unsigned int, void __user *); |
155 | typedef int (*vop_getattr_t)(bhv_desc_t *, struct vattr *, int, | 155 | typedef int (*vop_getattr_t)(bhv_desc_t *, struct bhv_vattr *, int, |
156 | struct cred *); | 156 | struct cred *); |
157 | typedef int (*vop_setattr_t)(bhv_desc_t *, struct vattr *, int, | 157 | typedef int (*vop_setattr_t)(bhv_desc_t *, struct bhv_vattr *, int, |
158 | struct cred *); | 158 | struct cred *); |
159 | typedef int (*vop_access_t)(bhv_desc_t *, int, struct cred *); | 159 | typedef int (*vop_access_t)(bhv_desc_t *, int, struct cred *); |
160 | typedef int (*vop_lookup_t)(bhv_desc_t *, vname_t *, bhv_vnode_t **, | 160 | typedef int (*vop_lookup_t)(bhv_desc_t *, bhv_vname_t *, bhv_vnode_t **, |
161 | int, bhv_vnode_t *, struct cred *); | 161 | int, bhv_vnode_t *, struct cred *); |
162 | typedef int (*vop_create_t)(bhv_desc_t *, vname_t *, struct vattr *, | 162 | typedef int (*vop_create_t)(bhv_desc_t *, bhv_vname_t *, struct bhv_vattr *, |
163 | bhv_vnode_t **, struct cred *); | 163 | bhv_vnode_t **, struct cred *); |
164 | typedef int (*vop_remove_t)(bhv_desc_t *, vname_t *, struct cred *); | 164 | typedef int (*vop_remove_t)(bhv_desc_t *, bhv_vname_t *, struct cred *); |
165 | typedef int (*vop_link_t)(bhv_desc_t *, bhv_vnode_t *, vname_t *, | 165 | typedef int (*vop_link_t)(bhv_desc_t *, bhv_vnode_t *, bhv_vname_t *, |
166 | struct cred *); | 166 | struct cred *); |
167 | typedef int (*vop_rename_t)(bhv_desc_t *, vname_t *, bhv_vnode_t *, | 167 | typedef int (*vop_rename_t)(bhv_desc_t *, bhv_vname_t *, bhv_vnode_t *, |
168 | vname_t *, struct cred *); | 168 | bhv_vname_t *, struct cred *); |
169 | typedef int (*vop_mkdir_t)(bhv_desc_t *, vname_t *, struct vattr *, | 169 | typedef int (*vop_mkdir_t)(bhv_desc_t *, bhv_vname_t *, struct bhv_vattr *, |
170 | bhv_vnode_t **, struct cred *); | 170 | bhv_vnode_t **, struct cred *); |
171 | typedef int (*vop_rmdir_t)(bhv_desc_t *, vname_t *, struct cred *); | 171 | typedef int (*vop_rmdir_t)(bhv_desc_t *, bhv_vname_t *, struct cred *); |
172 | typedef int (*vop_readdir_t)(bhv_desc_t *, struct uio *, struct cred *, | 172 | typedef int (*vop_readdir_t)(bhv_desc_t *, struct uio *, struct cred *, |
173 | int *); | 173 | int *); |
174 | typedef int (*vop_symlink_t)(bhv_desc_t *, vname_t *, struct vattr *, | 174 | typedef int (*vop_symlink_t)(bhv_desc_t *, bhv_vname_t *, struct bhv_vattr*, |
175 | char *, bhv_vnode_t **, struct cred *); | 175 | char *, bhv_vnode_t **, struct cred *); |
176 | typedef int (*vop_readlink_t)(bhv_desc_t *, struct uio *, int, | 176 | typedef int (*vop_readlink_t)(bhv_desc_t *, struct uio *, int, |
177 | struct cred *); | 177 | struct cred *); |
@@ -180,8 +180,8 @@ typedef int (*vop_fsync_t)(bhv_desc_t *, int, struct cred *, | |||
180 | typedef int (*vop_inactive_t)(bhv_desc_t *, struct cred *); | 180 | typedef int (*vop_inactive_t)(bhv_desc_t *, struct cred *); |
181 | typedef int (*vop_fid2_t)(bhv_desc_t *, struct fid *); | 181 | typedef int (*vop_fid2_t)(bhv_desc_t *, struct fid *); |
182 | typedef int (*vop_release_t)(bhv_desc_t *); | 182 | typedef int (*vop_release_t)(bhv_desc_t *); |
183 | typedef int (*vop_rwlock_t)(bhv_desc_t *, vrwlock_t); | 183 | typedef int (*vop_rwlock_t)(bhv_desc_t *, bhv_vrwlock_t); |
184 | typedef void (*vop_rwunlock_t)(bhv_desc_t *, vrwlock_t); | 184 | typedef void (*vop_rwunlock_t)(bhv_desc_t *, bhv_vrwlock_t); |
185 | typedef int (*vop_bmap_t)(bhv_desc_t *, xfs_off_t, ssize_t, int, | 185 | typedef int (*vop_bmap_t)(bhv_desc_t *, xfs_off_t, ssize_t, int, |
186 | struct xfs_iomap *, int *); | 186 | struct xfs_iomap *, int *); |
187 | typedef int (*vop_reclaim_t)(bhv_desc_t *); | 187 | typedef int (*vop_reclaim_t)(bhv_desc_t *); |
@@ -194,7 +194,7 @@ typedef int (*vop_attr_remove_t)(bhv_desc_t *, const char *, | |||
194 | typedef int (*vop_attr_list_t)(bhv_desc_t *, char *, int, int, | 194 | typedef int (*vop_attr_list_t)(bhv_desc_t *, char *, int, int, |
195 | struct attrlist_cursor_kern *, struct cred *); | 195 | struct attrlist_cursor_kern *, struct cred *); |
196 | typedef void (*vop_link_removed_t)(bhv_desc_t *, bhv_vnode_t *, int); | 196 | typedef void (*vop_link_removed_t)(bhv_desc_t *, bhv_vnode_t *, int); |
197 | typedef void (*vop_vnode_change_t)(bhv_desc_t *, vchange_t, __psint_t); | 197 | typedef void (*vop_vnode_change_t)(bhv_desc_t *, bhv_vchange_t, __psint_t); |
198 | typedef void (*vop_ptossvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int); | 198 | typedef void (*vop_ptossvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int); |
199 | typedef void (*vop_pflushinvalvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int); | 199 | typedef void (*vop_pflushinvalvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int); |
200 | typedef int (*vop_pflushvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, | 200 | typedef int (*vop_pflushvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, |
@@ -346,7 +346,7 @@ typedef struct bhv_vnodeops { | |||
346 | * Vnode attributes. va_mask indicates those attributes the caller | 346 | * Vnode attributes. va_mask indicates those attributes the caller |
347 | * wants to set or extract. | 347 | * wants to set or extract. |
348 | */ | 348 | */ |
349 | typedef struct vattr { | 349 | typedef struct bhv_vattr { |
350 | int va_mask; /* bit-mask of attributes present */ | 350 | int va_mask; /* bit-mask of attributes present */ |
351 | mode_t va_mode; /* file access mode and type */ | 351 | mode_t va_mode; /* file access mode and type */ |
352 | xfs_nlink_t va_nlink; /* number of references to file */ | 352 | xfs_nlink_t va_nlink; /* number of references to file */ |
@@ -366,7 +366,7 @@ typedef struct vattr { | |||
366 | u_long va_nextents; /* number of extents in file */ | 366 | u_long va_nextents; /* number of extents in file */ |
367 | u_long va_anextents; /* number of attr extents in file */ | 367 | u_long va_anextents; /* number of attr extents in file */ |
368 | prid_t va_projid; /* project id */ | 368 | prid_t va_projid; /* project id */ |
369 | } vattr_t; | 369 | } bhv_vattr_t; |
370 | 370 | ||
371 | /* | 371 | /* |
372 | * setattr or getattr attributes | 372 | * setattr or getattr attributes |
@@ -442,8 +442,8 @@ typedef struct vattr { | |||
442 | extern void vn_init(void); | 442 | extern void vn_init(void); |
443 | extern bhv_vnode_t *vn_initialize(struct inode *); | 443 | extern bhv_vnode_t *vn_initialize(struct inode *); |
444 | extern int vn_revalidate(struct bhv_vnode *); | 444 | extern int vn_revalidate(struct bhv_vnode *); |
445 | extern int __vn_revalidate(struct bhv_vnode *, vattr_t *); | 445 | extern int __vn_revalidate(struct bhv_vnode *, bhv_vattr_t *); |
446 | extern void vn_revalidate_core(struct bhv_vnode *, vattr_t *); | 446 | extern void vn_revalidate_core(struct bhv_vnode *, bhv_vattr_t *); |
447 | 447 | ||
448 | extern void vn_iowait(struct bhv_vnode *vp); | 448 | extern void vn_iowait(struct bhv_vnode *vp); |
449 | extern void vn_iowake(struct bhv_vnode *vp); | 449 | extern void vn_iowake(struct bhv_vnode *vp); |