The patch titled valid_swaphandles() fix has been removed from the -mm tree. Its filename is valid_swaphandles-fix.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: valid_swaphandles() fix From: Hugh Dickins <hugh@xxxxxxxxxxx> akpm draws my attention to the fact that sysctl(VM_PAGE_CLUSTER) might conceivably change page_cluster to 0 while valid_swaphandles() is in the middle of using it, leading to an embarrassingly long loop: take a local snapshot of page_cluster and work with that. Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/swapfile.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff -puN mm/swapfile.c~valid_swaphandles-fix mm/swapfile.c --- a/mm/swapfile.c~valid_swaphandles-fix +++ a/mm/swapfile.c @@ -1723,13 +1723,14 @@ get_swap_info_struct(unsigned type) */ int valid_swaphandles(swp_entry_t entry, unsigned long *offset) { - int ret = 0, i = 1 << page_cluster; + int our_page_cluster = page_cluster; + int ret = 0, i = 1 << our_page_cluster; unsigned long toff; struct swap_info_struct *swapdev = swp_type(entry) + swap_info; - if (!page_cluster) /* no readahead */ + if (!our_page_cluster) /* no readahead */ return 0; - toff = (swp_offset(entry) >> page_cluster) << page_cluster; + toff = (swp_offset(entry) >> our_page_cluster) << our_page_cluster; if (!toff) /* first page is swap header */ toff++, i--; *offset = toff; _ Patches currently in -mm which might be from hugh@xxxxxxxxxxx are origin.patch generic-bug-handling.patch generic-bug-handling-fix.patch use-generic-bug-for-i386.patch use-generic-bug-for-i386-tidy.patch use-generic-bug-for-x86-64.patch use-generic-bug-for-x86-64-fix.patch use-generic-bug-for-powerpc.patch use-generic-bug-for-powerpc-fix.patch use-generic-bug-for-powerpc-fix-2.patch use-generic-bug-for-powerpc-fix-3.patch bug-test-1.patch knfsd-add-nfs-export-support-to-tmpfs.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html