mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] core: use list_move()
This patch converts the combination of list_del(A) and list_add(A, B) to list_move(A, B). Cc: Greg Kroah-Hartman <[email protected]> Cc: Ram Pai <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a7addcea6a
commit
1bfba4e8ea
8 changed files with 22 additions and 38 deletions
|
|
@ -86,8 +86,7 @@ int rotate_reclaimable_page(struct page *page)
|
|||
zone = page_zone(page);
|
||||
spin_lock_irqsave(&zone->lru_lock, flags);
|
||||
if (PageLRU(page) && !PageActive(page)) {
|
||||
list_del(&page->lru);
|
||||
list_add_tail(&page->lru, &zone->inactive_list);
|
||||
list_move_tail(&page->lru, &zone->inactive_list);
|
||||
inc_page_state(pgrotated);
|
||||
}
|
||||
if (!test_clear_page_writeback(page))
|
||||
|
|
|
|||
Loading…
Reference in a new issue