diff options
author | David Chinner <david@fromorbit.com> | 2008-10-30 02:15:03 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 02:15:03 -0400 |
commit | bc60a99323b3ec628273b5fa998285c87d464ca6 (patch) | |
tree | 5084bb53b48d1b9ba3ceed8a3995296cc21840c5 /fs/xfs/linux-2.6/xfs_vnode.c | |
parent | 2af75df7be7ca86965bf73766f827575d1c26fbd (diff) |
[XFS] Use struct inodes instead of vnodes to kill vn_grab
With the sync code relocated to the linux-2.6 directory we can use struct
inodes directly. If we do the same thing for the quota release code, we
can remove vn_grab altogether. While here, convert the VN_BAD() checks to
is_bad_inode() so we can remove vnodes entirely from this code.
SGI-PV: 988140
SGI-Modid: xfs-linux-melb:xfs-kern:32304a
Signed-off-by: David Chinner <david@fromorbit.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index b52528bbbfff..dceb6dbaa2da 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
@@ -90,10 +90,10 @@ vn_ioerror( | |||
90 | */ | 90 | */ |
91 | static inline int xfs_icount(struct xfs_inode *ip) | 91 | static inline int xfs_icount(struct xfs_inode *ip) |
92 | { | 92 | { |
93 | struct inode *vp = VFS_I(ip); | 93 | struct inode *inode = VFS_I(ip); |
94 | 94 | ||
95 | if (vp) | 95 | if (!inode) |
96 | return vn_count(vp); | 96 | return atomic_read(&inode->i_count); |
97 | return -1; | 97 | return -1; |
98 | } | 98 | } |
99 | 99 | ||