diff options
author | Nick Piggin <npiggin@suse.de> | 2010-03-17 13:31:04 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-04-05 14:41:51 -0400 |
commit | 28ecb60906e86e74e9ad4ac7e0218d8631e73a94 (patch) | |
tree | 7214fa7bfb39f789aa4a78e174e39f61ef101b95 /net/atm | |
parent | 0cad8a1130f77c7c445e3298c0e3593b3c0ef439 (diff) | |
download | op-kernel-dev-28ecb60906e86e74e9ad4ac7e0218d8631e73a94.zip op-kernel-dev-28ecb60906e86e74e9ad4ac7e0218d8631e73a94.tar.gz |
Btrfs: use add_to_page_cache_lru, use __page_cache_alloc
Pagecache pages should be allocated with __page_cache_alloc, so they
obey pagecache memory policies.
add_to_page_cache_lru is exported, so it should be used. Benefits over
using a private pagevec: neater code, 128 bytes fewer stack used, percpu
lru ordering is preserved, and finally don't need to flush pagevec
before returning so batching may be shared with other LRU insertions.
Signed-off-by: Nick Piggin <npiggin@suse.de>:
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions