diff options
author | Christoph Hellwig <hch@sgi.com> | 2006-01-11 04:58:44 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-01-11 04:58:44 -0500 |
commit | 75e17b3caf29b262000dc7348f1be9a7d5403463 (patch) | |
tree | 4bdf782dd3624fd23832b035ebbdbb4daca7dd94 /fs/xfs/linux-2.6/xfs_ioctl.c | |
parent | 204ab25f36fbd44a24458c0227cf2629c8caf00d (diff) |
[XFS] add helper to get xfs_inode from vnode
SGI-PV: 947206
SGI-Modid: xfs-linux-melb:xfs-kern:203960a
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_ioctl.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index 7ad7b680e996..b3b2cfda273c 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c | |||
@@ -145,13 +145,10 @@ xfs_find_handle( | |||
145 | 145 | ||
146 | if (cmd != XFS_IOC_PATH_TO_FSHANDLE) { | 146 | if (cmd != XFS_IOC_PATH_TO_FSHANDLE) { |
147 | xfs_inode_t *ip; | 147 | xfs_inode_t *ip; |
148 | bhv_desc_t *bhv; | ||
149 | int lock_mode; | 148 | int lock_mode; |
150 | 149 | ||
151 | /* need to get access to the xfs_inode to read the generation */ | 150 | /* need to get access to the xfs_inode to read the generation */ |
152 | bhv = vn_bhv_lookup_unlocked(VN_BHV_HEAD(vp), &xfs_vnodeops); | 151 | ip = xfs_vtoi(vp); |
153 | ASSERT(bhv); | ||
154 | ip = XFS_BHVTOI(bhv); | ||
155 | ASSERT(ip); | 152 | ASSERT(ip); |
156 | lock_mode = xfs_ilock_map_shared(ip); | 153 | lock_mode = xfs_ilock_map_shared(ip); |
157 | 154 | ||