aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorRoman Gushchin <[email protected]>2022-06-10 11:03:10 -0700
committerakpm <[email protected]>2022-06-16 19:48:31 -0700
commitfc4db90fe71e640e3fe88df346f7cf653b75315d (patch)
tree031cfdd6ab6407802f6b8aef2fe60cfa0d73b84e /include/linux/fpga/fpga-mgr.h
parent1e57ffb6e3fd9583268c6462c4e3853575b21701 (diff)
mm: kmem: make mem_cgroup_from_obj() vmalloc()-safe
Currently mem_cgroup_from_obj() is not working properly with objects allocated using vmalloc(). It creates problems in some cases, when it's called for static objects belonging to modules or generally allocated using vmalloc(). This patch makes mem_cgroup_from_obj() safe to be called on objects allocated using vmalloc(). It also introduces mem_cgroup_from_slab_obj(), which is a faster version to use in places when we know the object is either a slab object or a generic slab page (e.g. when adding an object to a lru list). Link: https://lkml.kernel.org/r/[email protected] Suggested-by: Kefeng Wang <[email protected]> Signed-off-by: Roman Gushchin <[email protected]> Tested-by: Linux Kernel Functional Testing <[email protected]> Acked-by: Shakeel Butt <[email protected]> Tested-by: Vasily Averin <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Muchun Song <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Naresh Kamboju <[email protected]> Cc: Qian Cai <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: David S. Miller <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Florian Westphal <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Michal Koutný <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions