mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
vmscan: delete dead code
`priority' cannot be negative here. And the comment is obsolete. Signed-off-by: Shaohua Li <[email protected]> Reviewed-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
bce54bbfde
commit
66d9a986cd
1 changed files with 0 additions and 10 deletions
10
mm/vmscan.c
10
mm/vmscan.c
|
|
@ -1956,16 +1956,6 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
|
|||
}
|
||||
|
||||
out:
|
||||
/*
|
||||
* Now that we've scanned all the zones at this priority level, note
|
||||
* that level within the zone so that the next thread which performs
|
||||
* scanning of this zone will immediately start out at this priority
|
||||
* level. This affects only the decision whether or not to bring
|
||||
* mapped pages onto the inactive list.
|
||||
*/
|
||||
if (priority < 0)
|
||||
priority = 0;
|
||||
|
||||
delayacct_freepages_end();
|
||||
put_mems_allowed();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue