diff options
author | Ben Myers <bpm@sgi.com> | 2013-09-11 01:11:22 +0200 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-10-02 00:38:16 +0200 |
commit | d948709b8e468510d8c855d1e4c9f1cb7b524880 (patch) | |
tree | ea4af275dd326cc4a6e83927996dc4ac3592b535 /fs/xfs/xfs_super.c | |
parent | xfs: fix the wrong new_size/rnew_size at xfs_iext_realloc_direct() (diff) | |
download | linux-d948709b8e468510d8c855d1e4c9f1cb7b524880.tar.xz linux-d948709b8e468510d8c855d1e4c9f1cb7b524880.zip |
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 '')
-rw-r--r-- | fs/xfs/xfs_super.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 15188cc99449..938e50fe6c61 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -946,10 +946,6 @@ xfs_fs_destroy_inode( XFS_STATS_INC(vn_reclaim); - /* bad inode, get out here ASAP */ - if (is_bad_inode(inode)) - goto out_reclaim; - ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0); /* @@ -965,7 +961,6 @@ xfs_fs_destroy_inode( * this more efficiently than we can here, so simply let background * reclaim tear down all inodes. */ -out_reclaim: xfs_inode_set_reclaim_tag(ip); } @@ -1491,10 +1486,6 @@ xfs_fs_fill_super( error = ENOENT; goto out_unmount; } - if (is_bad_inode(root)) { - error = EINVAL; - goto out_unmount; - } sb->s_root = d_make_root(root); if (!sb->s_root) { error = ENOMEM; |