aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_iops.c16
-rw-r--r--fs/xfs/linux-2.6/xfs_lrw.c10
-rw-r--r--fs/xfs/linux-2.6/xfs_vfs.c4
-rw-r--r--fs/xfs/linux-2.6/xfs_vfs.h8
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.c6
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h64
7 files changed, 55 insertions, 55 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c
index 73182503c16e..a0e247c71323 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl.c
+++ b/fs/xfs/linux-2.6/xfs_ioctl.c
@@ -1157,7 +1157,7 @@ xfs_ioc_xattr(
1157 void __user *arg) 1157 void __user *arg)
1158{ 1158{
1159 struct fsxattr fa; 1159 struct fsxattr fa;
1160 struct vattr *vattr; 1160 struct bhv_vattr *vattr;
1161 int error = 0; 1161 int error = 0;
1162 int attr_flags; 1162 int attr_flags;
1163 unsigned int flags; 1163 unsigned int flags;
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c
index 0857658882e0..484daef91d7f 100644
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -200,7 +200,7 @@ xfs_ichgtime_fast(
200STATIC void 200STATIC void
201xfs_validate_fields( 201xfs_validate_fields(
202 struct inode *ip, 202 struct inode *ip,
203 struct vattr *vattr) 203 bhv_vattr_t *vattr)
204{ 204{
205 vattr->va_mask = XFS_AT_NLINK|XFS_AT_SIZE|XFS_AT_NBLOCKS; 205 vattr->va_mask = XFS_AT_NLINK|XFS_AT_SIZE|XFS_AT_NBLOCKS;
206 if (!bhv_vop_getattr(vn_from_inode(ip), vattr, ATTR_LAZY, NULL)) { 206 if (!bhv_vop_getattr(vn_from_inode(ip), vattr, ATTR_LAZY, NULL)) {
@@ -290,7 +290,7 @@ xfs_vn_mknod(
290 dev_t rdev) 290 dev_t rdev)
291{ 291{
292 struct inode *ip; 292 struct inode *ip;
293 vattr_t vattr = { 0 }; 293 bhv_vattr_t vattr = { 0 };
294 bhv_vnode_t *vp = NULL, *dvp = vn_from_inode(dir); 294 bhv_vnode_t *vp = NULL, *dvp = vn_from_inode(dir);
295 xfs_acl_t *default_acl = NULL; 295 xfs_acl_t *default_acl = NULL;
296 attrexists_t test_default_acl = _ACL_DEFAULT_EXISTS; 296 attrexists_t test_default_acl = _ACL_DEFAULT_EXISTS;
@@ -417,7 +417,7 @@ xfs_vn_link(
417 struct inode *ip; /* inode of guy being linked to */ 417 struct inode *ip; /* inode of guy being linked to */
418 bhv_vnode_t *tdvp; /* target directory for new name/link */ 418 bhv_vnode_t *tdvp; /* target directory for new name/link */
419 bhv_vnode_t *vp; /* vp of name being linked */ 419 bhv_vnode_t *vp; /* vp of name being linked */
420 vattr_t vattr; 420 bhv_vattr_t vattr;
421 int error; 421 int error;
422 422
423 ip = old_dentry->d_inode; /* inode being linked to */ 423 ip = old_dentry->d_inode; /* inode being linked to */
@@ -444,7 +444,7 @@ xfs_vn_unlink(
444{ 444{
445 struct inode *inode; 445 struct inode *inode;
446 bhv_vnode_t *dvp; /* directory containing name to remove */ 446 bhv_vnode_t *dvp; /* directory containing name to remove */
447 vattr_t vattr; 447 bhv_vattr_t vattr;
448 int error; 448 int error;
449 449
450 inode = dentry->d_inode; 450 inode = dentry->d_inode;
@@ -465,7 +465,7 @@ xfs_vn_symlink(
465 const char *symname) 465 const char *symname)
466{ 466{
467 struct inode *ip; 467 struct inode *ip;
468 vattr_t va = { 0 }; 468 bhv_vattr_t va = { 0 };
469 bhv_vnode_t *dvp; /* directory containing name of symlink */ 469 bhv_vnode_t *dvp; /* directory containing name of symlink */
470 bhv_vnode_t *cvp; /* used to lookup symlink to put in dentry */ 470 bhv_vnode_t *cvp; /* used to lookup symlink to put in dentry */
471 int error; 471 int error;
@@ -499,7 +499,7 @@ xfs_vn_rmdir(
499{ 499{
500 struct inode *inode = dentry->d_inode; 500 struct inode *inode = dentry->d_inode;
501 bhv_vnode_t *dvp = vn_from_inode(dir); 501 bhv_vnode_t *dvp = vn_from_inode(dir);
502 vattr_t vattr; 502 bhv_vattr_t vattr;
503 int error; 503 int error;
504 504
505 error = bhv_vop_rmdir(dvp, dentry, NULL); 505 error = bhv_vop_rmdir(dvp, dentry, NULL);
@@ -520,7 +520,7 @@ xfs_vn_rename(
520 struct inode *new_inode = ndentry->d_inode; 520 struct inode *new_inode = ndentry->d_inode;
521 bhv_vnode_t *fvp; /* from directory */ 521 bhv_vnode_t *fvp; /* from directory */
522 bhv_vnode_t *tvp; /* target directory */ 522 bhv_vnode_t *tvp; /* target directory */
523 vattr_t vattr; 523 bhv_vattr_t vattr;
524 int error; 524 int error;
525 525
526 fvp = vn_from_inode(odir); 526 fvp = vn_from_inode(odir);
@@ -643,7 +643,7 @@ xfs_vn_setattr(
643 struct inode *inode = dentry->d_inode; 643 struct inode *inode = dentry->d_inode;
644 unsigned int ia_valid = attr->ia_valid; 644 unsigned int ia_valid = attr->ia_valid;
645 bhv_vnode_t *vp = vn_from_inode(inode); 645 bhv_vnode_t *vp = vn_from_inode(inode);
646 vattr_t vattr = { 0 }; 646 bhv_vattr_t vattr = { 0 };
647 int flags = 0; 647 int flags = 0;
648 int error; 648 int error;
649 649
diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c
index a9b83018f0fb..8696096f8d22 100644
--- a/fs/xfs/linux-2.6/xfs_lrw.c
+++ b/fs/xfs/linux-2.6/xfs_lrw.c
@@ -258,7 +258,7 @@ xfs_read(
258 258
259 if (DM_EVENT_ENABLED(vp->v_vfsp, ip, DM_EVENT_READ) && 259 if (DM_EVENT_ENABLED(vp->v_vfsp, ip, DM_EVENT_READ) &&
260 !(ioflags & IO_INVIS)) { 260 !(ioflags & IO_INVIS)) {
261 vrwlock_t locktype = VRWLOCK_READ; 261 bhv_vrwlock_t locktype = VRWLOCK_READ;
262 int dmflags = FILP_DELAY_FLAG(file) | DM_SEM_FLAG_RD(ioflags); 262 int dmflags = FILP_DELAY_FLAG(file) | DM_SEM_FLAG_RD(ioflags);
263 263
264 ret = -XFS_SEND_DATA(mp, DM_EVENT_READ, 264 ret = -XFS_SEND_DATA(mp, DM_EVENT_READ,
@@ -313,7 +313,7 @@ xfs_sendfile(
313 313
314 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_READ) && 314 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_READ) &&
315 (!(ioflags & IO_INVIS))) { 315 (!(ioflags & IO_INVIS))) {
316 vrwlock_t locktype = VRWLOCK_READ; 316 bhv_vrwlock_t locktype = VRWLOCK_READ;
317 int error; 317 int error;
318 318
319 error = XFS_SEND_DATA(mp, DM_EVENT_READ, BHV_TO_VNODE(bdp), 319 error = XFS_SEND_DATA(mp, DM_EVENT_READ, BHV_TO_VNODE(bdp),
@@ -357,7 +357,7 @@ xfs_splice_read(
357 357
358 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_READ) && 358 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_READ) &&
359 (!(ioflags & IO_INVIS))) { 359 (!(ioflags & IO_INVIS))) {
360 vrwlock_t locktype = VRWLOCK_READ; 360 bhv_vrwlock_t locktype = VRWLOCK_READ;
361 int error; 361 int error;
362 362
363 error = XFS_SEND_DATA(mp, DM_EVENT_READ, BHV_TO_VNODE(bdp), 363 error = XFS_SEND_DATA(mp, DM_EVENT_READ, BHV_TO_VNODE(bdp),
@@ -401,7 +401,7 @@ xfs_splice_write(
401 401
402 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_WRITE) && 402 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_WRITE) &&
403 (!(ioflags & IO_INVIS))) { 403 (!(ioflags & IO_INVIS))) {
404 vrwlock_t locktype = VRWLOCK_WRITE; 404 bhv_vrwlock_t locktype = VRWLOCK_WRITE;
405 int error; 405 int error;
406 406
407 error = XFS_SEND_DATA(mp, DM_EVENT_WRITE, BHV_TO_VNODE(bdp), 407 error = XFS_SEND_DATA(mp, DM_EVENT_WRITE, BHV_TO_VNODE(bdp),
@@ -630,7 +630,7 @@ xfs_write(
630 unsigned long seg; 630 unsigned long seg;
631 int iolock; 631 int iolock;
632 int eventsent = 0; 632 int eventsent = 0;
633 vrwlock_t locktype; 633 bhv_vrwlock_t locktype;
634 size_t ocount = 0, count; 634 size_t ocount = 0, count;
635 loff_t pos; 635 loff_t pos;
636 int need_i_mutex = 1, need_flush = 0; 636 int need_i_mutex = 1, need_flush = 0;
diff --git a/fs/xfs/linux-2.6/xfs_vfs.c b/fs/xfs/linux-2.6/xfs_vfs.c
index a91ecfa9c8aa..4fc884bcb4fd 100644
--- a/fs/xfs/linux-2.6/xfs_vfs.c
+++ b/fs/xfs/linux-2.6/xfs_vfs.c
@@ -117,7 +117,7 @@ vfs_root(
117int 117int
118vfs_statvfs( 118vfs_statvfs(
119 struct bhv_desc *bdp, 119 struct bhv_desc *bdp,
120 xfs_statfs_t *sp, 120 bhv_statvfs_t *statp,
121 struct bhv_vnode *vp) 121 struct bhv_vnode *vp)
122{ 122{
123 struct bhv_desc *next = bdp; 123 struct bhv_desc *next = bdp;
@@ -125,7 +125,7 @@ vfs_statvfs(
125 ASSERT(next); 125 ASSERT(next);
126 while (! (bhvtovfsops(next))->vfs_statvfs) 126 while (! (bhvtovfsops(next))->vfs_statvfs)
127 next = BHV_NEXT(next); 127 next = BHV_NEXT(next);
128 return ((*bhvtovfsops(next)->vfs_statvfs)(next, sp, vp)); 128 return ((*bhvtovfsops(next)->vfs_statvfs)(next, statp, vp));
129} 129}
130 130
131int 131int
diff --git a/fs/xfs/linux-2.6/xfs_vfs.h b/fs/xfs/linux-2.6/xfs_vfs.h
index 1a3a2dd4b97e..7b88eeae0f26 100644
--- a/fs/xfs/linux-2.6/xfs_vfs.h
+++ b/fs/xfs/linux-2.6/xfs_vfs.h
@@ -23,14 +23,14 @@
23 23
24struct bhv_vfs; 24struct bhv_vfs;
25struct bhv_vnode; 25struct bhv_vnode;
26
26struct fid; 27struct fid;
27struct cred; 28struct cred;
28struct statfs;
29struct seq_file; 29struct seq_file;
30struct super_block; 30struct super_block;
31struct xfs_mount_args; 31struct xfs_mount_args;
32 32
33typedef struct kstatfs xfs_statfs_t; 33typedef struct kstatfs bhv_statvfs_t;
34 34
35typedef struct bhv_vfs_sync_work { 35typedef struct bhv_vfs_sync_work {
36 struct list_head w_list; 36 struct list_head w_list;
@@ -109,7 +109,7 @@ typedef int (*vfs_unmount_t)(bhv_desc_t *, int, struct cred *);
109typedef int (*vfs_mntupdate_t)(bhv_desc_t *, int *, 109typedef int (*vfs_mntupdate_t)(bhv_desc_t *, int *,
110 struct xfs_mount_args *); 110 struct xfs_mount_args *);
111typedef int (*vfs_root_t)(bhv_desc_t *, struct bhv_vnode **); 111typedef int (*vfs_root_t)(bhv_desc_t *, struct bhv_vnode **);
112typedef int (*vfs_statvfs_t)(bhv_desc_t *, xfs_statfs_t *, 112typedef int (*vfs_statvfs_t)(bhv_desc_t *, bhv_statvfs_t *,
113 struct bhv_vnode *); 113 struct bhv_vnode *);
114typedef int (*vfs_sync_t)(bhv_desc_t *, int, struct cred *); 114typedef int (*vfs_sync_t)(bhv_desc_t *, int, struct cred *);
115typedef int (*vfs_vget_t)(bhv_desc_t *, struct bhv_vnode **, struct fid *); 115typedef int (*vfs_vget_t)(bhv_desc_t *, struct bhv_vnode **, struct fid *);
@@ -181,7 +181,7 @@ extern int vfs_showargs(bhv_desc_t *, struct seq_file *);
181extern int vfs_unmount(bhv_desc_t *, int, struct cred *); 181extern int vfs_unmount(bhv_desc_t *, int, struct cred *);
182extern int vfs_mntupdate(bhv_desc_t *, int *, struct xfs_mount_args *); 182extern int vfs_mntupdate(bhv_desc_t *, int *, struct xfs_mount_args *);
183extern int vfs_root(bhv_desc_t *, struct bhv_vnode **); 183extern int vfs_root(bhv_desc_t *, struct bhv_vnode **);
184extern int vfs_statvfs(bhv_desc_t *, xfs_statfs_t *, struct bhv_vnode *); 184extern int vfs_statvfs(bhv_desc_t *, bhv_statvfs_t *, struct bhv_vnode *);
185extern int vfs_sync(bhv_desc_t *, int, struct cred *); 185extern int vfs_sync(bhv_desc_t *, int, struct cred *);
186extern int vfs_vget(bhv_desc_t *, struct bhv_vnode **, struct fid *); 186extern int vfs_vget(bhv_desc_t *, struct bhv_vnode **, struct fid *);
187extern int vfs_dmapiops(bhv_desc_t *, caddr_t); 187extern int vfs_dmapiops(bhv_desc_t *, caddr_t);
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c
index 66e36e195f29..6628d96b6fd6 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.c
+++ b/fs/xfs/linux-2.6/xfs_vnode.c
@@ -111,7 +111,7 @@ vn_initialize(
111void 111void
112vn_revalidate_core( 112vn_revalidate_core(
113 bhv_vnode_t *vp, 113 bhv_vnode_t *vp,
114 vattr_t *vap) 114 bhv_vattr_t *vap)
115{ 115{
116 struct inode *inode = vn_to_inode(vp); 116 struct inode *inode = vn_to_inode(vp);
117 117
@@ -147,7 +147,7 @@ vn_revalidate_core(
147int 147int
148__vn_revalidate( 148__vn_revalidate(
149 bhv_vnode_t *vp, 149 bhv_vnode_t *vp,
150 struct vattr *vattr) 150 bhv_vattr_t *vattr)
151{ 151{
152 int error; 152 int error;
153 153
@@ -165,7 +165,7 @@ int
165vn_revalidate( 165vn_revalidate(
166 bhv_vnode_t *vp) 166 bhv_vnode_t *vp)
167{ 167{
168 vattr_t vattr; 168 bhv_vattr_t vattr;
169 169
170 return __vn_revalidate(vp, &vattr); 170 return __vn_revalidate(vp, &vattr);
171} 171}
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);