diff options
author | Nathan Scott <nathans@sgi.com> | 2006-06-09 03:00:52 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-06-09 03:00:52 -0400 |
commit | 67fcaa73adafb19139a7cd8ab133592b6a0a0901 (patch) | |
tree | 6e7b83e7c8b0a1d8b4776af1537d6f07ebe9435d /fs/xfs/xfs_vfsops.c | |
parent | b83bd1388133e914c38bd31d69bc90143e6ab10c (diff) |
[XFS] Resolve a namespace collision on vnode/vnodeops for FreeBSD porters.
SGI-PV: 953338
SGI-Modid: xfs-linux-melb:xfs-kern:26107a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index 57ee2bebd248..d3f270a62c9f 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -555,7 +555,7 @@ xfs_unmount( | |||
555 | bhv_vfs_t *vfsp = bhvtovfs(bdp); | 555 | bhv_vfs_t *vfsp = bhvtovfs(bdp); |
556 | xfs_mount_t *mp = XFS_BHVTOM(bdp); | 556 | xfs_mount_t *mp = XFS_BHVTOM(bdp); |
557 | xfs_inode_t *rip; | 557 | xfs_inode_t *rip; |
558 | vnode_t *rvp; | 558 | bhv_vnode_t *rvp; |
559 | int unmount_event_wanted = 0; | 559 | int unmount_event_wanted = 0; |
560 | int unmount_event_flags = 0; | 560 | int unmount_event_flags = 0; |
561 | int xfs_unmountfs_needed = 0; | 561 | int xfs_unmountfs_needed = 0; |
@@ -701,7 +701,7 @@ xfs_unmount_flush( | |||
701 | xfs_inode_t *rip = mp->m_rootip; | 701 | xfs_inode_t *rip = mp->m_rootip; |
702 | xfs_inode_t *rbmip; | 702 | xfs_inode_t *rbmip; |
703 | xfs_inode_t *rsumip = NULL; | 703 | xfs_inode_t *rsumip = NULL; |
704 | vnode_t *rvp = XFS_ITOV(rip); | 704 | bhv_vnode_t *rvp = XFS_ITOV(rip); |
705 | int error; | 705 | int error; |
706 | 706 | ||
707 | xfs_ilock(rip, XFS_ILOCK_EXCL); | 707 | xfs_ilock(rip, XFS_ILOCK_EXCL); |
@@ -780,9 +780,9 @@ fscorrupt_out2: | |||
780 | STATIC int | 780 | STATIC int |
781 | xfs_root( | 781 | xfs_root( |
782 | bhv_desc_t *bdp, | 782 | bhv_desc_t *bdp, |
783 | vnode_t **vpp) | 783 | bhv_vnode_t **vpp) |
784 | { | 784 | { |
785 | vnode_t *vp; | 785 | bhv_vnode_t *vp; |
786 | 786 | ||
787 | vp = XFS_ITOV((XFS_BHVTOM(bdp))->m_rootip); | 787 | vp = XFS_ITOV((XFS_BHVTOM(bdp))->m_rootip); |
788 | VN_HOLD(vp); | 788 | VN_HOLD(vp); |
@@ -801,7 +801,7 @@ STATIC int | |||
801 | xfs_statvfs( | 801 | xfs_statvfs( |
802 | bhv_desc_t *bdp, | 802 | bhv_desc_t *bdp, |
803 | xfs_statfs_t *statp, | 803 | xfs_statfs_t *statp, |
804 | vnode_t *vp) | 804 | bhv_vnode_t *vp) |
805 | { | 805 | { |
806 | __uint64_t fakeinos; | 806 | __uint64_t fakeinos; |
807 | xfs_extlen_t lsize; | 807 | xfs_extlen_t lsize; |
@@ -916,7 +916,7 @@ xfs_sync_inodes( | |||
916 | xfs_inode_t *ip = NULL; | 916 | xfs_inode_t *ip = NULL; |
917 | xfs_inode_t *ip_next; | 917 | xfs_inode_t *ip_next; |
918 | xfs_buf_t *bp; | 918 | xfs_buf_t *bp; |
919 | vnode_t *vp = NULL; | 919 | bhv_vnode_t *vp = NULL; |
920 | int error; | 920 | int error; |
921 | int last_error; | 921 | int last_error; |
922 | uint64_t fflag; | 922 | uint64_t fflag; |
@@ -1155,9 +1155,9 @@ xfs_sync_inodes( | |||
1155 | xfs_iunlock(ip, XFS_ILOCK_SHARED); | 1155 | xfs_iunlock(ip, XFS_ILOCK_SHARED); |
1156 | 1156 | ||
1157 | if (XFS_FORCED_SHUTDOWN(mp)) { | 1157 | if (XFS_FORCED_SHUTDOWN(mp)) { |
1158 | VOP_TOSS_PAGES(vp, 0, -1, FI_REMAPF); | 1158 | bhv_vop_toss_pages(vp, 0, -1, FI_REMAPF); |
1159 | } else { | 1159 | } else { |
1160 | VOP_FLUSHINVAL_PAGES(vp, 0, -1, FI_REMAPF); | 1160 | bhv_vop_flushinval_pages(vp, 0, -1, FI_REMAPF); |
1161 | } | 1161 | } |
1162 | 1162 | ||
1163 | xfs_ilock(ip, XFS_ILOCK_SHARED); | 1163 | xfs_ilock(ip, XFS_ILOCK_SHARED); |
@@ -1177,8 +1177,8 @@ xfs_sync_inodes( | |||
1177 | * across calls to the buffer cache. | 1177 | * across calls to the buffer cache. |
1178 | */ | 1178 | */ |
1179 | xfs_iunlock(ip, XFS_ILOCK_SHARED); | 1179 | xfs_iunlock(ip, XFS_ILOCK_SHARED); |
1180 | VOP_FLUSH_PAGES(vp, (xfs_off_t)0, -1, | 1180 | error = bhv_vop_flush_pages(vp, (xfs_off_t)0, |
1181 | fflag, FI_NONE, error); | 1181 | -1, fflag, FI_NONE); |
1182 | xfs_ilock(ip, XFS_ILOCK_SHARED); | 1182 | xfs_ilock(ip, XFS_ILOCK_SHARED); |
1183 | } | 1183 | } |
1184 | 1184 | ||
@@ -1230,9 +1230,7 @@ xfs_sync_inodes( | |||
1230 | * marker and free it. | 1230 | * marker and free it. |
1231 | */ | 1231 | */ |
1232 | XFS_MOUNT_ILOCK(mp); | 1232 | XFS_MOUNT_ILOCK(mp); |
1233 | |||
1234 | IPOINTER_REMOVE(ip, mp); | 1233 | IPOINTER_REMOVE(ip, mp); |
1235 | |||
1236 | XFS_MOUNT_IUNLOCK(mp); | 1234 | XFS_MOUNT_IUNLOCK(mp); |
1237 | 1235 | ||
1238 | ASSERT(!(lock_flags & | 1236 | ASSERT(!(lock_flags & |
@@ -1573,7 +1571,7 @@ xfs_syncsub( | |||
1573 | STATIC int | 1571 | STATIC int |
1574 | xfs_vget( | 1572 | xfs_vget( |
1575 | bhv_desc_t *bdp, | 1573 | bhv_desc_t *bdp, |
1576 | vnode_t **vpp, | 1574 | bhv_vnode_t **vpp, |
1577 | fid_t *fidp) | 1575 | fid_t *fidp) |
1578 | { | 1576 | { |
1579 | xfs_mount_t *mp = XFS_BHVTOM(bdp); | 1577 | xfs_mount_t *mp = XFS_BHVTOM(bdp); |