Skip to contentSkip to conversation

mm-dcache-use-kmem_cache_alloc_lru-to-allocate-dentry.patch removed from -mm tree

merged Andrew Morton 1 participant 1 message Mar 25, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: dcache: use kmem_cache_alloc_lru() to allocate dentry
has been removed from the -mm tree. Its filename was
mm-dcache-use-kmem_cache_alloc_lru-to-allocate-dentry.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Muchun Song <[email protected]>
Subject: mm: dcache: use kmem_cache_alloc_lru() to allocate dentry

Like inode cache, the dentry will also be added to its memcg list_lru. So replace kmem_cache_alloc() with kmem_cache_alloc_lru() to allocate dentry.

Cc Alex Shi <[email protected]>
Cc Anna Schumaker <[email protected]>
Cc Chao Yu <[email protected]>
Cc Dave Chinner <[email protected]>
Cc Fam Zheng <[email protected]>
Cc Jaegeuk Kim <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kari Argillander <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Qi Zheng <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Theodore Ts'o <[email protected]>
Cc Trond Myklebust <[email protected]>
Cc Vladimir Davydov <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Wei Yang <[email protected]>
Cc Xiongchun Duan <[email protected]>
Cc Yang Shi <[email protected]>

---

 fs/dcache.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/dcache.c renamed from fs/dcache.c~mm-dcache-use-kmem_cache_alloc_lru-to-allocate-dentry +2 -1
@@ -1766,7 +1766,8 @@ static struct dentry *__d_alloc(struct s
 	char *dname;
 	int err;
 
-	dentry = kmem_cache_alloc(dentry_cache, GFP_KERNEL);
+	dentry = kmem_cache_alloc_lru(dentry_cache, &sb->s_dentry_lru,
+				      GFP_KERNEL);
 	if (!dentry)
 		return NULL;
 

_

Patches currently in -mm which might be from [email protected] are