diff options
author | Christoph Hellwig <hch@sgi.com> | 2005-09-02 02:46:51 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-09-02 02:46:51 -0400 |
commit | 0432dab2d2d3b35347a95c01c78a40781b6431fb (patch) | |
tree | 44fa8c13d6300c9c42b9f5a60aeb933131e24e67 /fs/xfs/linux-2.6/xfs_vnode.c | |
parent | 155ffd075caedcea5ad595c95403c71bfc391c4a (diff) |
[XFS] remove struct vnode::v_type
SGI-PV: 936236
SGI-Modid: xfs-linux:xfs-kern:195878a
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index 353276bda344..ad16af38e965 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
@@ -44,19 +44,6 @@ DEFINE_SPINLOCK(vnumber_lock); | |||
44 | #define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC]) | 44 | #define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC]) |
45 | sv_t vsync[NVSYNC]; | 45 | sv_t vsync[NVSYNC]; |
46 | 46 | ||
47 | /* | ||
48 | * Translate stat(2) file types to vnode types and vice versa. | ||
49 | * Aware of numeric order of S_IFMT and vnode type values. | ||
50 | */ | ||
51 | enum vtype iftovt_tab[] = { | ||
52 | VNON, VFIFO, VCHR, VNON, VDIR, VNON, VBLK, VNON, | ||
53 | VREG, VNON, VLNK, VNON, VSOCK, VNON, VNON, VNON | ||
54 | }; | ||
55 | |||
56 | u_short vttoif_tab[] = { | ||
57 | 0, S_IFREG, S_IFDIR, S_IFBLK, S_IFCHR, S_IFLNK, S_IFIFO, 0, S_IFSOCK | ||
58 | }; | ||
59 | |||
60 | 47 | ||
61 | void | 48 | void |
62 | vn_init(void) | 49 | vn_init(void) |
@@ -95,7 +82,6 @@ vn_reclaim( | |||
95 | vp->v_flag &= (VRECLM|VWAIT); | 82 | vp->v_flag &= (VRECLM|VWAIT); |
96 | VN_UNLOCK(vp, 0); | 83 | VN_UNLOCK(vp, 0); |
97 | 84 | ||
98 | vp->v_type = VNON; | ||
99 | vp->v_fbhv = NULL; | 85 | vp->v_fbhv = NULL; |
100 | 86 | ||
101 | #ifdef XFS_VNODE_TRACE | 87 | #ifdef XFS_VNODE_TRACE |
@@ -174,7 +160,7 @@ vn_revalidate_core( | |||
174 | { | 160 | { |
175 | struct inode *inode = LINVFS_GET_IP(vp); | 161 | struct inode *inode = LINVFS_GET_IP(vp); |
176 | 162 | ||
177 | inode->i_mode = VTTOIF(vap->va_type) | vap->va_mode; | 163 | inode->i_mode = vap->va_mode; |
178 | inode->i_nlink = vap->va_nlink; | 164 | inode->i_nlink = vap->va_nlink; |
179 | inode->i_uid = vap->va_uid; | 165 | inode->i_uid = vap->va_uid; |
180 | inode->i_gid = vap->va_gid; | 166 | inode->i_gid = vap->va_gid; |