aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2014-02-21 04:02:54 +0900
committerDaniel Phillips <daniel@tux3.org>2014-02-21 04:02:54 +0900
commitd3d10769ee3780b6366cda3c92311be542628ac0 (patch)
tree2adf0b8e584fbcb86ee7ff5cc9dd69ee87035321
parente1c8266273fb3cf1b4b04144f5ed3f117f1bfc7a (diff)
downloadlinux-tux3-d3d10769ee3780b6366cda3c92311be542628ac0.tar.gz
tux3: Fix newpage_add_lru() for kernel v3.11
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r--fs/tux3/buffer_fork.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/tux3/buffer_fork.c b/fs/tux3/buffer_fork.c
index 867471eee116fc..1c62845cdcf9f3 100644
--- a/fs/tux3/buffer_fork.c
+++ b/fs/tux3/buffer_fork.c
@@ -354,13 +354,10 @@ static void oldpage_try_remove_from_lru(struct page *page)
/* Required functions are not exported at 3.4.4 */
}
-/* Schedule to add LRU list */
+/* Schedule to add LRU list (based on putback_lru_page()) */
static void newpage_add_lru(struct page *page)
{
- if (TestClearPageActive(page))
- __lru_cache_add(page, LRU_ACTIVE_FILE);
- else
- __lru_cache_add(page, LRU_INACTIVE_FILE);
+ __lru_cache_add(page);
}
enum ret_needfork {