diff options
author | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:25:36 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:25:36 -0500 |
commit | ec86dc02fdc062d0d298814b1e78b482ab38caf7 (patch) | |
tree | 2746adfa5471f7026cdd5a9ba4c4853de6795256 /fs/xfs/linux-2.6/xfs_iops.c | |
parent | 8867bc9bf0aed7181aa72c7c938c6ce830b75166 (diff) |
[XFS] Complete transition away from linvfs naming convention, finally.
SGI-PV: 947038
SGI-Modid: xfs-linux-melb:xfs-kern:25474a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_iops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 0a508580e572..64c3395074de 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -106,7 +106,7 @@ xfs_ichgtime( | |||
106 | xfs_inode_t *ip, | 106 | xfs_inode_t *ip, |
107 | int flags) | 107 | int flags) |
108 | { | 108 | { |
109 | struct inode *inode = LINVFS_GET_IP(XFS_ITOV(ip)); | 109 | struct inode *inode = vn_to_inode(XFS_ITOV(ip)); |
110 | timespec_t tv; | 110 | timespec_t tv; |
111 | 111 | ||
112 | nanotime(&tv); | 112 | nanotime(&tv); |
@@ -202,7 +202,7 @@ xfs_validate_fields( | |||
202 | struct inode *ip, | 202 | struct inode *ip, |
203 | struct vattr *vattr) | 203 | struct vattr *vattr) |
204 | { | 204 | { |
205 | vnode_t *vp = LINVFS_GET_VP(ip); | 205 | vnode_t *vp = vn_from_inode(ip); |
206 | int error; | 206 | int error; |
207 | 207 | ||
208 | vattr->va_mask = XFS_AT_NLINK|XFS_AT_SIZE|XFS_AT_NBLOCKS; | 208 | vattr->va_mask = XFS_AT_NLINK|XFS_AT_SIZE|XFS_AT_NBLOCKS; |
@@ -228,7 +228,7 @@ xfs_init_security( | |||
228 | struct vnode *vp, | 228 | struct vnode *vp, |
229 | struct inode *dir) | 229 | struct inode *dir) |
230 | { | 230 | { |
231 | struct inode *ip = LINVFS_GET_IP(vp); | 231 | struct inode *ip = vn_to_inode(vp); |
232 | size_t length; | 232 | size_t length; |
233 | void *value; | 233 | void *value; |
234 | char *name; | 234 | char *name; |
@@ -277,7 +277,7 @@ xfs_cleanup_inode( | |||
277 | * xfs_init_security we must back out. | 277 | * xfs_init_security we must back out. |
278 | * ENOSPC can hit here, among other things. | 278 | * ENOSPC can hit here, among other things. |
279 | */ | 279 | */ |
280 | teardown.d_inode = LINVFS_GET_IP(vp); | 280 | teardown.d_inode = vn_to_inode(vp); |
281 | teardown.d_name = dentry->d_name; | 281 | teardown.d_name = dentry->d_name; |
282 | 282 | ||
283 | if (S_ISDIR(mode)) | 283 | if (S_ISDIR(mode)) |
@@ -296,7 +296,7 @@ xfs_vn_mknod( | |||
296 | { | 296 | { |
297 | struct inode *ip; | 297 | struct inode *ip; |
298 | vattr_t vattr = { 0 }; | 298 | vattr_t vattr = { 0 }; |
299 | vnode_t *vp = NULL, *dvp = LINVFS_GET_VP(dir); | 299 | vnode_t *vp = NULL, *dvp = vn_from_inode(dir); |
300 | xfs_acl_t *default_acl = NULL; | 300 | xfs_acl_t *default_acl = NULL; |
301 | attrexists_t test_default_acl = _ACL_DEFAULT_EXISTS; | 301 | attrexists_t test_default_acl = _ACL_DEFAULT_EXISTS; |
302 | int error; | 302 | int error; |
@@ -359,7 +359,7 @@ xfs_vn_mknod( | |||
359 | 359 | ||
360 | if (likely(!error)) { | 360 | if (likely(!error)) { |
361 | ASSERT(vp); | 361 | ASSERT(vp); |
362 | ip = LINVFS_GET_IP(vp); | 362 | ip = vn_to_inode(vp); |
363 | 363 | ||
364 | if (S_ISCHR(mode) || S_ISBLK(mode)) | 364 | if (S_ISCHR(mode) || S_ISBLK(mode)) |
365 | ip->i_rdev = rdev; | 365 | ip->i_rdev = rdev; |
@@ -396,7 +396,7 @@ xfs_vn_lookup( | |||
396 | struct dentry *dentry, | 396 | struct dentry *dentry, |
397 | struct nameidata *nd) | 397 | struct nameidata *nd) |
398 | { | 398 | { |
399 | struct vnode *vp = LINVFS_GET_VP(dir), *cvp; | 399 | struct vnode *vp = vn_from_inode(dir), *cvp; |
400 | int error; | 400 | int error; |
401 | 401 | ||
402 | if (dentry->d_name.len >= MAXNAMELEN) | 402 | if (dentry->d_name.len >= MAXNAMELEN) |
@@ -410,7 +410,7 @@ xfs_vn_lookup( | |||
410 | return NULL; | 410 | return NULL; |
411 | } | 411 | } |
412 | 412 | ||
413 | return d_splice_alias(LINVFS_GET_IP(cvp), dentry); | 413 | return d_splice_alias(vn_to_inode(cvp), dentry); |
414 | } | 414 | } |
415 | 415 | ||
416 | STATIC int | 416 | STATIC int |
@@ -429,8 +429,8 @@ xfs_vn_link( | |||
429 | if (S_ISDIR(ip->i_mode)) | 429 | if (S_ISDIR(ip->i_mode)) |
430 | return -EPERM; | 430 | return -EPERM; |
431 | 431 | ||
432 | tdvp = LINVFS_GET_VP(dir); | 432 | tdvp = vn_from_inode(dir); |
433 | vp = LINVFS_GET_VP(ip); | 433 | vp = vn_from_inode(ip); |
434 | 434 | ||
435 | VOP_LINK(tdvp, vp, dentry, NULL, error); | 435 | VOP_LINK(tdvp, vp, dentry, NULL, error); |
436 | if (likely(!error)) { | 436 | if (likely(!error)) { |
@@ -453,7 +453,7 @@ xfs_vn_unlink( | |||
453 | int error; | 453 | int error; |
454 | 454 | ||
455 | inode = dentry->d_inode; | 455 | inode = dentry->d_inode; |
456 | dvp = LINVFS_GET_VP(dir); | 456 | dvp = vn_from_inode(dir); |
457 | 457 | ||
458 | VOP_REMOVE(dvp, dentry, NULL, error); | 458 | VOP_REMOVE(dvp, dentry, NULL, error); |
459 | if (likely(!error)) { | 459 | if (likely(!error)) { |
@@ -475,7 +475,7 @@ xfs_vn_symlink( | |||
475 | vnode_t *cvp; /* used to lookup symlink to put in dentry */ | 475 | vnode_t *cvp; /* used to lookup symlink to put in dentry */ |
476 | int error; | 476 | int error; |
477 | 477 | ||
478 | dvp = LINVFS_GET_VP(dir); | 478 | dvp = vn_from_inode(dir); |
479 | cvp = NULL; | 479 | cvp = NULL; |
480 | 480 | ||
481 | vattr.va_mode = S_IFLNK | | 481 | vattr.va_mode = S_IFLNK | |
@@ -487,7 +487,7 @@ xfs_vn_symlink( | |||
487 | if (likely(!error && cvp)) { | 487 | if (likely(!error && cvp)) { |
488 | error = xfs_init_security(cvp, dir); | 488 | error = xfs_init_security(cvp, dir); |
489 | if (likely(!error)) { | 489 | if (likely(!error)) { |
490 | ip = LINVFS_GET_IP(cvp); | 490 | ip = vn_to_inode(cvp); |
491 | d_instantiate(dentry, ip); | 491 | d_instantiate(dentry, ip); |
492 | xfs_validate_fields(dir, &vattr); | 492 | xfs_validate_fields(dir, &vattr); |
493 | xfs_validate_fields(ip, &vattr); | 493 | xfs_validate_fields(ip, &vattr); |
@@ -502,7 +502,7 @@ xfs_vn_rmdir( | |||
502 | struct dentry *dentry) | 502 | struct dentry *dentry) |
503 | { | 503 | { |
504 | struct inode *inode = dentry->d_inode; | 504 | struct inode *inode = dentry->d_inode; |
505 | vnode_t *dvp = LINVFS_GET_VP(dir); | 505 | vnode_t *dvp = vn_from_inode(dir); |
506 | vattr_t vattr; | 506 | vattr_t vattr; |
507 | int error; | 507 | int error; |
508 | 508 | ||
@@ -527,8 +527,8 @@ xfs_vn_rename( | |||
527 | vattr_t vattr; | 527 | vattr_t vattr; |
528 | int error; | 528 | int error; |
529 | 529 | ||
530 | fvp = LINVFS_GET_VP(odir); | 530 | fvp = vn_from_inode(odir); |
531 | tvp = LINVFS_GET_VP(ndir); | 531 | tvp = vn_from_inode(ndir); |
532 | 532 | ||
533 | VOP_RENAME(fvp, odentry, tvp, ndentry, NULL, error); | 533 | VOP_RENAME(fvp, odentry, tvp, ndentry, NULL, error); |
534 | if (likely(!error)) { | 534 | if (likely(!error)) { |
@@ -573,7 +573,7 @@ xfs_vn_follow_link( | |||
573 | return NULL; | 573 | return NULL; |
574 | } | 574 | } |
575 | 575 | ||
576 | vp = LINVFS_GET_VP(dentry->d_inode); | 576 | vp = vn_from_inode(dentry->d_inode); |
577 | 577 | ||
578 | iov.iov_base = link; | 578 | iov.iov_base = link; |
579 | iov.iov_len = MAXPATHLEN; | 579 | iov.iov_len = MAXPATHLEN; |
@@ -616,7 +616,7 @@ xfs_vn_permission( | |||
616 | int mode, | 616 | int mode, |
617 | struct nameidata *nd) | 617 | struct nameidata *nd) |
618 | { | 618 | { |
619 | vnode_t *vp = LINVFS_GET_VP(inode); | 619 | vnode_t *vp = vn_from_inode(inode); |
620 | int error; | 620 | int error; |
621 | 621 | ||
622 | mode <<= 6; /* convert from linux to vnode access bits */ | 622 | mode <<= 6; /* convert from linux to vnode access bits */ |
@@ -634,7 +634,7 @@ xfs_vn_getattr( | |||
634 | struct kstat *stat) | 634 | struct kstat *stat) |
635 | { | 635 | { |
636 | struct inode *inode = dentry->d_inode; | 636 | struct inode *inode = dentry->d_inode; |
637 | vnode_t *vp = LINVFS_GET_VP(inode); | 637 | vnode_t *vp = vn_from_inode(inode); |
638 | int error = 0; | 638 | int error = 0; |
639 | 639 | ||
640 | if (unlikely(vp->v_flag & VMODIFIED)) | 640 | if (unlikely(vp->v_flag & VMODIFIED)) |
@@ -651,7 +651,7 @@ xfs_vn_setattr( | |||
651 | { | 651 | { |
652 | struct inode *inode = dentry->d_inode; | 652 | struct inode *inode = dentry->d_inode; |
653 | unsigned int ia_valid = attr->ia_valid; | 653 | unsigned int ia_valid = attr->ia_valid; |
654 | vnode_t *vp = LINVFS_GET_VP(inode); | 654 | vnode_t *vp = vn_from_inode(inode); |
655 | vattr_t vattr = { 0 }; | 655 | vattr_t vattr = { 0 }; |
656 | int flags = 0; | 656 | int flags = 0; |
657 | int error; | 657 | int error; |
@@ -717,7 +717,7 @@ xfs_vn_setxattr( | |||
717 | size_t size, | 717 | size_t size, |
718 | int flags) | 718 | int flags) |
719 | { | 719 | { |
720 | vnode_t *vp = LINVFS_GET_VP(dentry->d_inode); | 720 | vnode_t *vp = vn_from_inode(dentry->d_inode); |
721 | char *attr = (char *)name; | 721 | char *attr = (char *)name; |
722 | attrnames_t *namesp; | 722 | attrnames_t *namesp; |
723 | int xflags = 0; | 723 | int xflags = 0; |
@@ -747,7 +747,7 @@ xfs_vn_getxattr( | |||
747 | void *data, | 747 | void *data, |
748 | size_t size) | 748 | size_t size) |
749 | { | 749 | { |
750 | vnode_t *vp = LINVFS_GET_VP(dentry->d_inode); | 750 | vnode_t *vp = vn_from_inode(dentry->d_inode); |
751 | char *attr = (char *)name; | 751 | char *attr = (char *)name; |
752 | attrnames_t *namesp; | 752 | attrnames_t *namesp; |
753 | int xflags = 0; | 753 | int xflags = 0; |
@@ -776,7 +776,7 @@ xfs_vn_listxattr( | |||
776 | char *data, | 776 | char *data, |
777 | size_t size) | 777 | size_t size) |
778 | { | 778 | { |
779 | vnode_t *vp = LINVFS_GET_VP(dentry->d_inode); | 779 | vnode_t *vp = vn_from_inode(dentry->d_inode); |
780 | int error, xflags = ATTR_KERNAMELS; | 780 | int error, xflags = ATTR_KERNAMELS; |
781 | ssize_t result; | 781 | ssize_t result; |
782 | 782 | ||
@@ -795,7 +795,7 @@ xfs_vn_removexattr( | |||
795 | struct dentry *dentry, | 795 | struct dentry *dentry, |
796 | const char *name) | 796 | const char *name) |
797 | { | 797 | { |
798 | vnode_t *vp = LINVFS_GET_VP(dentry->d_inode); | 798 | vnode_t *vp = vn_from_inode(dentry->d_inode); |
799 | char *attr = (char *)name; | 799 | char *attr = (char *)name; |
800 | attrnames_t *namesp; | 800 | attrnames_t *namesp; |
801 | int xflags = 0; | 801 | int xflags = 0; |