X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fswap_state.c;h=bc7cee6b2ec54c7654676a180e0265355d814524;hb=eaad1ae7819fa2b8616a31c66d48982b1bb85d62;hp=c56aa9ac050dd2f96dd8c9582ee5044d2d7fddb2;hpb=e49d68ce7cc5a865ce14c1e57938438ab01c3ce3;p=linux-2.6-microblaze.git diff --git a/mm/swap_state.c b/mm/swap_state.c index c56aa9ac050d..bc7cee6b2ec5 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -628,13 +628,6 @@ struct page *swap_cluster_readahead(swp_entry_t entry, gfp_t gfp_mask, if (!mask) goto skip; - /* Test swap type to make sure the dereference is safe */ - if (likely(si->flags & (SWP_BLKDEV | SWP_FS_OPS))) { - struct inode *inode = si->swap_file->f_mapping->host; - if (inode_read_congested(inode)) - goto skip; - } - do_poll = false; /* Read a page_cluster sized and aligned cluster around offset. */ start_offset = offset & ~mask;