From: Chen Yucong Date: Wed, 4 Jun 2014 23:10:57 +0000 (-0700) Subject: mm/swapfile.c: delete the "last_in_cluster < scan_base" loop in the body of scan_swap... X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50088c440910730baf3248acfad2c846fb3eea77;p=pandora-kernel.git mm/swapfile.c: delete the "last_in_cluster < scan_base" loop in the body of scan_swap_map() Via commit ebc2a1a69111 ("swap: make cluster allocation per-cpu"), we can find that all SWP_SOLIDSTATE "seek is cheap"(SSD case) has already gone to si->cluster_info scan_swap_map_try_ssd_cluster() route. So that the "last_in_cluster < scan_base" loop in the body of scan_swap_map() has already become a dead code snippet, and it should have been deleted. This patch is to delete the redundant loop as Hugh and Shaohua suggested. [hughd@google.com: fix comment, simplify code] Signed-off-by: Chen Yucong Cc: Shaohua Li Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed