[CIFS] use add_to_page_cache_lru
authorNick Piggin <npiggen@suse.de>
Wed, 21 Apr 2010 03:18:28 +0000 (03:18 +0000)
committerSteve French <sfrench@us.ibm.com>
Wed, 21 Apr 2010 03:18:28 +0000 (03:18 +0000)
commit315e995c63a15cb4d4efdbfd70fe2db191917f7a
treef04c83f9bfe315cee9d8993d4244fd7ef7aab796
parent05ce7bfe547c9fa967d9cab6c37867a9cb6fb3fa
[CIFS] use add_to_page_cache_lru

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>
Reviewed-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c