Skip to content

Commit

Permalink
xfs: kill VN_BAD
Browse files Browse the repository at this point in the history
Remove this rather pointless wrapper and use is_bad_inode directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Mar 16, 2009
1 parent 8fab451 commit cb4c8cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions fs/xfs/linux-2.6/xfs_vnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ struct attrlist_cursor_kern;
Prevent VM access to the pages until
the operation completes. */

/*
* Dealing with bad inodes
*/
static inline int VN_BAD(struct inode *vp)
{
return is_bad_inode(vp);
}

/*
* Some useful predicates.
*/
Expand Down
4 changes: 2 additions & 2 deletions fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ xfs_inactive(
* If the inode is already free, then there can be nothing
* to clean up here.
*/
if (ip->i_d.di_mode == 0 || VN_BAD(VFS_I(ip))) {
if (ip->i_d.di_mode == 0 || is_bad_inode(VFS_I(ip))) {
ASSERT(ip->i_df.if_real_bytes == 0);
ASSERT(ip->i_df.if_broot_bytes == 0);
return VN_INACTIVE_CACHE;
Expand Down Expand Up @@ -2448,7 +2448,7 @@ xfs_reclaim(
ASSERT(!VN_MAPPED(VFS_I(ip)));

/* bad inode, get out here ASAP */
if (VN_BAD(VFS_I(ip))) {
if (is_bad_inode(VFS_I(ip))) {
xfs_ireclaim(ip);
return 0;
}
Expand Down

0 comments on commit cb4c8cc

Please sign in to comment.