aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorChen Yucong <[email protected]>2014-06-04 16:10:57 -0700
committerLinus Torvalds <[email protected]>2014-06-04 16:54:12 -0700
commit50088c440910730baf3248acfad2c846fb3eea77 (patch)
tree2a1b426e134e17869862fb87f7f35f92da86983c /fs/jbd2/commit.c
parent100873d7a777b67ad35197c5a998b5e778f8bf3f (diff)
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. [[email protected]: fix comment, simplify code] Signed-off-by: Chen Yucong <[email protected]> Cc: Shaohua Li <[email protected]> Acked-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions