diff options
| author | Laura Abbott <lauraa@codeaurora.org> | 2014-01-03 10:47:00 -0800 |
|---|---|---|
| committer | Liam Mark <lmark@codeaurora.org> | 2017-01-18 16:20:27 -0800 |
| commit | 7933a7ef8286919b33c0b1a809f206c39aab0a46 (patch) | |
| tree | fca313f526b8534f6d3a2933ef9f1847a30f7488 /fs | |
| parent | a5b88c7fda4e34bae7e63aa5929ce9fd62204c51 (diff) | |
fs: fuse: Add replacment for CMA pages into the LRU cache
CMA pages are currently replaced in the FUSE file system since
FUSE may hold on to CMA pages for a long time, preventing migration.
The replacement page is added to the file cache but not the LRU
cache. This may prevent the page from being properly aged and dropped,
creating poor performance under tight memory condition. Fix this by
adding the new page to the LRU cache after creation.
Change-Id: Ib349abf1024d48386b835335f3fbacae040b6241
CRs-Fixed: 586855
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/fuse/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 5071d1039c26..025f11b9cffa 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -928,6 +928,8 @@ static int fuse_readpages_fill(void *_data, struct page *page) lock_page(newpage); put_page(newpage); + lru_cache_add_file(newpage); + /* finally release the old page and swap pointers */ unlock_page(oldpage); page_cache_release(oldpage); |
