diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2009-03-31 15:23:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 08:59:15 -0700 |
commit | 2678958e1225f350806d90f211a3b475f64aee80 (patch) | |
tree | d4aeb116c78f31f96ffb0760e36b95424e7f9494 /mm/vmscan.c | |
parent | 88c3bd707c2552bcef93cc3724647903aece159d (diff) | |
download | op-kernel-dev-2678958e1225f350806d90f211a3b475f64aee80.zip op-kernel-dev-2678958e1225f350806d90f211a3b475f64aee80.tar.gz |
ramfs-nommu: use generic lru cache
Instead of open-coding the lru-list-add pagevec batching when expanding a
file mapping from zero, defer to the appropriate page cache function that
also takes care of adding the page to the lru list.
This is cleaner, saves code and reduces the stack footprint by 16 words
worth of pagevec.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: David Howells <dhowells@redhat.com>
Cc: Nick Piggin <npiggin@suse.de>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.com>
Cc: MinChan Kim <minchan.kim@gmail.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions