> diff --git a/include/linux/dcache.h b/include/linux/dcache.h > index 094789f..624c079 100644 > --- a/include/linux/dcache.h > +++ b/include/linux/dcache.h > @@ -120,6 +120,10 @@ struct dentry { > void *d_fsdata; /* fs-specific data */ > > struct list_head d_lru; /* LRU list */ > +#ifdef CONFIG_MEMCG_KMEM > + struct mem_cgroup *d_memcg; /* identify per memcg lru - > + NULL if not on lru */ > +#endif > /* > * d_child and d_rcu can share memory > */ What I dislike the most about this approach, is the need to come up with a pointer in the dentry structure. I am not saying I have a better solution, though... -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>