aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-06-09 03:00:52 -0400
committerNathan Scott <nathans@sgi.com>2006-06-09 03:00:52 -0400
commit67fcaa73adafb19139a7cd8ab133592b6a0a0901 (patch)
tree6e7b83e7c8b0a1d8b4776af1537d6f07ebe9435d /fs/xfs/xfs_inode.c
parentb83bd1388133e914c38bd31d69bc90143e6ab10c (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_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 0ed707ed664b..848783ba5650 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -1086,7 +1086,7 @@ xfs_ialloc(
1086{ 1086{
1087 xfs_ino_t ino; 1087 xfs_ino_t ino;
1088 xfs_inode_t *ip; 1088 xfs_inode_t *ip;
1089 vnode_t *vp; 1089 bhv_vnode_t *vp;
1090 uint flags; 1090 uint flags;
1091 int error; 1091 int error;
1092 1092
@@ -1427,7 +1427,7 @@ xfs_itruncate_start(
1427 xfs_fsize_t last_byte; 1427 xfs_fsize_t last_byte;
1428 xfs_off_t toss_start; 1428 xfs_off_t toss_start;
1429 xfs_mount_t *mp; 1429 xfs_mount_t *mp;
1430 vnode_t *vp; 1430 bhv_vnode_t *vp;
1431 1431
1432 ASSERT(ismrlocked(&ip->i_iolock, MR_UPDATE) != 0); 1432 ASSERT(ismrlocked(&ip->i_iolock, MR_UPDATE) != 0);
1433 ASSERT((new_size == 0) || (new_size <= ip->i_d.di_size)); 1433 ASSERT((new_size == 0) || (new_size <= ip->i_d.di_size));
@@ -1440,9 +1440,9 @@ xfs_itruncate_start(
1440 vn_iowait(vp); /* wait for the completion of any pending DIOs */ 1440 vn_iowait(vp); /* wait for the completion of any pending DIOs */
1441 1441
1442 /* 1442 /*
1443 * Call VOP_TOSS_PAGES() or VOP_FLUSHINVAL_PAGES() to get rid of pages and buffers 1443 * Call toss_pages or flushinval_pages to get rid of pages
1444 * overlapping the region being removed. We have to use 1444 * overlapping the region being removed. We have to use
1445 * the less efficient VOP_FLUSHINVAL_PAGES() in the case that the 1445 * the less efficient flushinval_pages in the case that the
1446 * caller may not be able to finish the truncate without 1446 * caller may not be able to finish the truncate without
1447 * dropping the inode's I/O lock. Make sure 1447 * dropping the inode's I/O lock. Make sure
1448 * to catch any pages brought in by buffers overlapping 1448 * to catch any pages brought in by buffers overlapping
@@ -1451,10 +1451,10 @@ xfs_itruncate_start(
1451 * so that we don't toss things on the same block as 1451 * so that we don't toss things on the same block as
1452 * new_size but before it. 1452 * new_size but before it.
1453 * 1453 *
1454 * Before calling VOP_TOSS_PAGES() or VOP_FLUSHINVAL_PAGES(), make sure to 1454 * Before calling toss_page or flushinval_pages, make sure to
1455 * call remapf() over the same region if the file is mapped. 1455 * call remapf() over the same region if the file is mapped.
1456 * This frees up mapped file references to the pages in the 1456 * This frees up mapped file references to the pages in the
1457 * given range and for the VOP_FLUSHINVAL_PAGES() case it ensures 1457 * given range and for the flushinval_pages case it ensures
1458 * that we get the latest mapped changes flushed out. 1458 * that we get the latest mapped changes flushed out.
1459 */ 1459 */
1460 toss_start = XFS_B_TO_FSB(mp, (xfs_ufsize_t)new_size); 1460 toss_start = XFS_B_TO_FSB(mp, (xfs_ufsize_t)new_size);
@@ -1472,9 +1472,9 @@ xfs_itruncate_start(
1472 last_byte); 1472 last_byte);
1473 if (last_byte > toss_start) { 1473 if (last_byte > toss_start) {
1474 if (flags & XFS_ITRUNC_DEFINITE) { 1474 if (flags & XFS_ITRUNC_DEFINITE) {
1475 VOP_TOSS_PAGES(vp, toss_start, -1, FI_REMAPF_LOCKED); 1475 bhv_vop_toss_pages(vp, toss_start, -1, FI_REMAPF_LOCKED);
1476 } else { 1476 } else {
1477 VOP_FLUSHINVAL_PAGES(vp, toss_start, -1, FI_REMAPF_LOCKED); 1477 bhv_vop_flushinval_pages(vp, toss_start, -1, FI_REMAPF_LOCKED);
1478 } 1478 }
1479 } 1479 }
1480 1480
@@ -2752,7 +2752,7 @@ xfs_iunpin(
2752 * the inode to become unpinned. 2752 * the inode to become unpinned.
2753 */ 2753 */
2754 if (!(ip->i_flags & (XFS_IRECLAIM|XFS_IRECLAIMABLE))) { 2754 if (!(ip->i_flags & (XFS_IRECLAIM|XFS_IRECLAIMABLE))) {
2755 vnode_t *vp = XFS_ITOV_NULL(ip); 2755 bhv_vnode_t *vp = XFS_ITOV_NULL(ip);
2756 2756
2757 /* make sync come back and flush this inode */ 2757 /* make sync come back and flush this inode */
2758 if (vp) { 2758 if (vp) {
@@ -3512,7 +3512,7 @@ xfs_iflush_all(
3512 xfs_mount_t *mp) 3512 xfs_mount_t *mp)
3513{ 3513{
3514 xfs_inode_t *ip; 3514 xfs_inode_t *ip;
3515 vnode_t *vp; 3515 bhv_vnode_t *vp;
3516 3516
3517 again: 3517 again:
3518 XFS_MOUNT_ILOCK(mp); 3518 XFS_MOUNT_ILOCK(mp);