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_aops.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_aops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 52707b5ddcb8..d1db8c17a74e 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -54,7 +54,6 @@ xfs_page_trace( | |||
54 | int mask) | 54 | int mask) |
55 | { | 55 | { |
56 | xfs_inode_t *ip; | 56 | xfs_inode_t *ip; |
57 | bhv_desc_t *bdp; | ||
58 | vnode_t *vp = LINVFS_GET_VP(inode); | 57 | vnode_t *vp = LINVFS_GET_VP(inode); |
59 | loff_t isize = i_size_read(inode); | 58 | loff_t isize = i_size_read(inode); |
60 | loff_t offset = page_offset(page); | 59 | loff_t offset = page_offset(page); |
@@ -63,8 +62,7 @@ xfs_page_trace( | |||
63 | if (page_has_buffers(page)) | 62 | if (page_has_buffers(page)) |
64 | xfs_count_page_state(page, &delalloc, &unmapped, &unwritten); | 63 | xfs_count_page_state(page, &delalloc, &unmapped, &unwritten); |
65 | 64 | ||
66 | bdp = vn_bhv_lookup(VN_BHV_HEAD(vp), &xfs_vnodeops); | 65 | ip = xfs_vtoi(vp); |
67 | ip = XFS_BHVTOI(bdp); | ||
68 | if (!ip->i_rwtrace) | 66 | if (!ip->i_rwtrace) |
69 | return; | 67 | return; |
70 | 68 | ||