{"push_id":995457906,"size":2,"distinct_size":2,"ref":"refs/heads/m","head":"909a5a42cd95894cf34ab18e75bfb016f7408dc9","before":"19e96c491dccb7f147a4ad7ba9b98ce19affa25d","commits":[{"sha":"95b20c3ed2c9e2953fe9677d264d21e2991f7117","author":{"email":"0d62248ee021b6e01c0ee596a62a5b145b996974@parallels.com","name":"Vladimir Davydov"},"message":"slub: rework sysfs layout for memcg caches\n\nCurrently, we try to arrange sysfs entries for memcg caches in the same\nmanner as for global caches.  Apart from turning /sys/kernel/slab into a\nmess when there are a lot of kmem-active memcgs created, it actually\ndoes not work properly - we won't create more than one link to a memcg\ncache in case its parent is merged with another cache.  For instance, if\nA is a root cache merged with another root cache B, we will have the\nfollowing sysfs setup:\n\n  X\n  A -> X\n  B -> X\n\nwhere X is some unique id (see create_unique_id()).  Now if memcgs M and\nN start to allocate from cache A (or B, which is the same), we will get:\n\n  X\n  X:M\n  X:N\n  A -> X\n  B -> X\n  A:M -> X:M\n  A:N -> X:N\n\nSince B is an alias for A, we won't get entries B:M and B:N, which is\nconfusing.\n\nIt is more logical to have entries for memcg caches under the\ncorresponding root cache's sysfs directory.  This would allow us to keep\nsysfs layout clean, and avoid such inconsistencies like one described\nabove.\n\nThis patch does the trick.  It creates a \"cgroup\" kset in each root\ncache kobject to keep its children caches there.\n\nChange-Id: I936113847f243857a7553b5ec49bc8232a239911\nSigned-off-by: Vladimir Davydov <vdavydov@parallels.com>\nCc: Michal Hocko <mhocko@suse.cz>\nCc: Johannes Weiner <hannes@cmpxchg.org>\nCc: David Rientjes <rientjes@google.com>\nCc: Pekka Enberg <penberg@kernel.org>\nCc: Glauber Costa <glommer@gmail.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","distinct":true,"url":"https://api.github.com/repos/DirtyUnicorns/android_kernel_moto_shamu/commits/95b20c3ed2c9e2953fe9677d264d21e2991f7117"},{"sha":"909a5a42cd95894cf34ab18e75bfb016f7408dc9","author":{"email":"732634fc6239a40e3bba885cf8d50e53bd02471d@gmail.com","name":"Edwin Rivera"},"message":"Merge \"slub: rework sysfs layout for memcg caches\" into m","distinct":true,"url":"https://api.github.com/repos/DirtyUnicorns/android_kernel_moto_shamu/commits/909a5a42cd95894cf34ab18e75bfb016f7408dc9"}]}