[PATCH] mm/vmscan.c: drop all inode/dentry cache from LRU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxx>, Johannes Weiner <hannes@xxxxxxxxxxx>, Vladimir Davydov <vdavydov.dev@xxxxxxxxx>, Yafang Shao <laoar.shao@xxxxxxxxx>, Roman Gushchin <guro@xxxxxx>, Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>, linux-mm@xxxxxxxxx, "Theodore Y. Ts'o" <tytso@xxxxxxx>, Jaegeuk Kim <jaegeuk@xxxxxxxxxx>, Eric Biggers <ebiggers@xxxxxxxxxx>, linux-fscrypt@xxxxxxxxxxxxxxx
- Subject: [PATCH] mm/vmscan.c: drop all inode/dentry cache from LRU
- From: Sahitya Tummala <stummala@xxxxxxxxxxxxxx>
- Date: Fri, 24 May 2019 13:36:01 +0530
This is important for the scenario where FBE (file based encryption)
is enabled. With FBE, the encryption context needed to en/decrypt a file
will be stored in inode and any inode that is left in the cache after
drop_caches is done will be a problem. For ex, in Android, drop_caches
will be used when switching work profiles.
Signed-off-by: Sahitya Tummala <stummala@xxxxxxxxxxxxxx>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index d96c547..b48926f 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -730,7 +730,7 @@ void drop_slab_node(int nid)
do {
freed += shrink_slab(GFP_KERNEL, nid, memcg, 0);
} while ((memcg = mem_cgroup_iter(NULL, memcg, NULL)) != NULL);
- } while (freed > 10);
+ } while (freed != 0);
}
void drop_slab(void)
--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]