projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5205e56
)
vmscan: kill unnecessary page flag test
author
KOSAKI Motohiro
<
[email protected]
>
Tue, 22 Sep 2009 00:01:45 +0000
(17:01 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 22 Sep 2009 14:17:30 +0000
(07:17 -0700)
The page_lru() already evaluate PageActive() and PageSwapBacked(). We
don't need to re-evaluate it.
Signed-off-by: KOSAKI Motohiro <
[email protected]
>
Reviewed-by: Johannes Weiner <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Minchan Kim <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Wu Fengguang <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index ca81d0d05c09575ecf810c09b2b9a27448e6b3b9..20c5fa8eca466f603d7356584c2cbcaa3b81cc07 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1208,8
+1208,8
@@
static unsigned long shrink_inactive_list(unsigned long max_scan,
SetPageLRU(page);
lru = page_lru(page);
add_page_to_lru_list(zone, page, lru);
- if (
PageActive(page
)) {
- int file = !!
page_is_file_cache(page
);
+ if (
is_active_lru(lru
)) {
+ int file = !!
is_file_lru(lru
);
reclaim_stat->recent_rotated[file]++;
}
if (!pagevec_add(&pvec, page)) {