aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorBen Myers <bpm@sgi.com>2013-09-10 19:11:22 -0400
committerBen Myers <bpm@sgi.com>2013-10-01 18:38:16 -0400
commitd948709b8e468510d8c855d1e4c9f1cb7b524880 (patch)
treeea4af275dd326cc4a6e83927996dc4ac3592b535 /fs/xfs/xfs_inode.c
parent17ec81c15fd022842f9bc947841ba9fb9eb52591 (diff)
xfs: remove usage of is_bad_inode
XFS never calls mark_inode_bad or iget_failed, so it will never see a bad inode. Remove all checks for is_bad_inode because they are unnecessary. Signed-off-by: Ben Myers <bpm@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index e3d75385aa76..5ac716b2df22 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -1687,7 +1687,7 @@ xfs_inactive(
1687 * If the inode is already free, then there can be nothing 1687 * If the inode is already free, then there can be nothing
1688 * to clean up here. 1688 * to clean up here.
1689 */ 1689 */
1690 if (ip->i_d.di_mode == 0 || is_bad_inode(VFS_I(ip))) { 1690 if (ip->i_d.di_mode == 0) {
1691 ASSERT(ip->i_df.if_real_bytes == 0); 1691 ASSERT(ip->i_df.if_real_bytes == 0);
1692 ASSERT(ip->i_df.if_broot_bytes == 0); 1692 ASSERT(ip->i_df.if_broot_bytes == 0);
1693 return VN_INACTIVE_CACHE; 1693 return VN_INACTIVE_CACHE;