aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_vnode.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-06-09 03:07:12 -0400
committerNathan Scott <nathans@sgi.com>2006-06-09 03:07:12 -0400
commit8285fb58e75bfdb447c7a2c533ec9efdb238f966 (patch)
tree4bcfa74d3328ff5d71437556d24019be98c1d9fa /fs/xfs/linux-2.6/xfs_vnode.h
parent67fcaa73adafb19139a7cd8ab133592b6a0a0901 (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.h64
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
21struct uio; 21struct uio;
22struct file; 22struct file;
23struct vattr; 23struct bhv_vfs;
24struct bhv_vattr;
24struct xfs_iomap; 25struct xfs_iomap;
25struct attrlist_cursor_kern; 26struct attrlist_cursor_kern;
26 27
27typedef xfs_ino_t vnumber_t; 28typedef struct dentry bhv_vname_t;
28typedef struct dentry vname_t; 29typedef __u64 bhv_vnumber_t;
29typedef bhv_head_t vn_bhv_head_t;
30 30
31typedef enum vflags { 31typedef 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 */
41typedef struct bhv_vnode { 41typedef 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 */
106typedef enum vrwlock { 106typedef 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 */
126typedef enum vchange { 126typedef 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
134typedef enum { L_FALSE, L_TRUE } lastclose_t; 134typedef 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 *);
153typedef int (*vop_ioctl_t)(bhv_desc_t *, struct inode *, struct file *, 153typedef int (*vop_ioctl_t)(bhv_desc_t *, struct inode *, struct file *,
154 int, unsigned int, void __user *); 154 int, unsigned int, void __user *);
155typedef int (*vop_getattr_t)(bhv_desc_t *, struct vattr *, int, 155typedef int (*vop_getattr_t)(bhv_desc_t *, struct bhv_vattr *, int,
156 struct cred *); 156 struct cred *);
157typedef int (*vop_setattr_t)(bhv_desc_t *, struct vattr *, int, 157typedef int (*vop_setattr_t)(bhv_desc_t *, struct bhv_vattr *, int,
158 struct cred *); 158 struct cred *);
159typedef int (*vop_access_t)(bhv_desc_t *, int, struct cred *); 159typedef int (*vop_access_t)(bhv_desc_t *, int, struct cred *);
160typedef int (*vop_lookup_t)(bhv_desc_t *, vname_t *, bhv_vnode_t **, 160typedef 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 *);
162typedef int (*vop_create_t)(bhv_desc_t *, vname_t *, struct vattr *, 162typedef 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 *);
164typedef int (*vop_remove_t)(bhv_desc_t *, vname_t *, struct cred *); 164typedef int (*vop_remove_t)(bhv_desc_t *, bhv_vname_t *, struct cred *);
165typedef int (*vop_link_t)(bhv_desc_t *, bhv_vnode_t *, vname_t *, 165typedef int (*vop_link_t)(bhv_desc_t *, bhv_vnode_t *, bhv_vname_t *,
166 struct cred *); 166 struct cred *);
167typedef int (*vop_rename_t)(bhv_desc_t *, vname_t *, bhv_vnode_t *, 167typedef int (*vop_rename_t)(bhv_desc_t *, bhv_vname_t *, bhv_vnode_t *,
168 vname_t *, struct cred *); 168 bhv_vname_t *, struct cred *);
169typedef int (*vop_mkdir_t)(bhv_desc_t *, vname_t *, struct vattr *, 169typedef 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 *);
171typedef int (*vop_rmdir_t)(bhv_desc_t *, vname_t *, struct cred *); 171typedef int (*vop_rmdir_t)(bhv_desc_t *, bhv_vname_t *, struct cred *);
172typedef int (*vop_readdir_t)(bhv_desc_t *, struct uio *, struct cred *, 172typedef int (*vop_readdir_t)(bhv_desc_t *, struct uio *, struct cred *,
173 int *); 173 int *);
174typedef int (*vop_symlink_t)(bhv_desc_t *, vname_t *, struct vattr *, 174typedef 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 *);
176typedef int (*vop_readlink_t)(bhv_desc_t *, struct uio *, int, 176typedef 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 *,
180typedef int (*vop_inactive_t)(bhv_desc_t *, struct cred *); 180typedef int (*vop_inactive_t)(bhv_desc_t *, struct cred *);
181typedef int (*vop_fid2_t)(bhv_desc_t *, struct fid *); 181typedef int (*vop_fid2_t)(bhv_desc_t *, struct fid *);
182typedef int (*vop_release_t)(bhv_desc_t *); 182typedef int (*vop_release_t)(bhv_desc_t *);
183typedef int (*vop_rwlock_t)(bhv_desc_t *, vrwlock_t); 183typedef int (*vop_rwlock_t)(bhv_desc_t *, bhv_vrwlock_t);
184typedef void (*vop_rwunlock_t)(bhv_desc_t *, vrwlock_t); 184typedef void (*vop_rwunlock_t)(bhv_desc_t *, bhv_vrwlock_t);
185typedef int (*vop_bmap_t)(bhv_desc_t *, xfs_off_t, ssize_t, int, 185typedef int (*vop_bmap_t)(bhv_desc_t *, xfs_off_t, ssize_t, int,
186 struct xfs_iomap *, int *); 186 struct xfs_iomap *, int *);
187typedef int (*vop_reclaim_t)(bhv_desc_t *); 187typedef int (*vop_reclaim_t)(bhv_desc_t *);
@@ -194,7 +194,7 @@ typedef int (*vop_attr_remove_t)(bhv_desc_t *, const char *,
194typedef int (*vop_attr_list_t)(bhv_desc_t *, char *, int, int, 194typedef 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 *);
196typedef void (*vop_link_removed_t)(bhv_desc_t *, bhv_vnode_t *, int); 196typedef void (*vop_link_removed_t)(bhv_desc_t *, bhv_vnode_t *, int);
197typedef void (*vop_vnode_change_t)(bhv_desc_t *, vchange_t, __psint_t); 197typedef void (*vop_vnode_change_t)(bhv_desc_t *, bhv_vchange_t, __psint_t);
198typedef void (*vop_ptossvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int); 198typedef void (*vop_ptossvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int);
199typedef void (*vop_pflushinvalvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int); 199typedef void (*vop_pflushinvalvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, int);
200typedef int (*vop_pflushvp_t)(bhv_desc_t *, xfs_off_t, xfs_off_t, 200typedef 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 */
349typedef struct vattr { 349typedef 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 {
442extern void vn_init(void); 442extern void vn_init(void);
443extern bhv_vnode_t *vn_initialize(struct inode *); 443extern bhv_vnode_t *vn_initialize(struct inode *);
444extern int vn_revalidate(struct bhv_vnode *); 444extern int vn_revalidate(struct bhv_vnode *);
445extern int __vn_revalidate(struct bhv_vnode *, vattr_t *); 445extern int __vn_revalidate(struct bhv_vnode *, bhv_vattr_t *);
446extern void vn_revalidate_core(struct bhv_vnode *, vattr_t *); 446extern void vn_revalidate_core(struct bhv_vnode *, bhv_vattr_t *);
447 447
448extern void vn_iowait(struct bhv_vnode *vp); 448extern void vn_iowait(struct bhv_vnode *vp);
449extern void vn_iowake(struct bhv_vnode *vp); 449extern void vn_iowake(struct bhv_vnode *vp);