mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] fs: introduce __getname_gfp()
@ 2009-05-16  9:51 Vegard Nossum
  2009-05-16  9:51 ` [PATCH 2/4] kmemcheck: add __GFP_NOTRACK_FALSE_POSITIVE flag Vegard Nossum
  0 siblings, 1 reply; 4+ messages in thread
From: Vegard Nossum @ 2009-05-16  9:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: Pekka Enberg, Ingo Molnar, Al Viro

The purpose of this change is to allow __getname() users to pass a
custom GFP mask to kmem_cache_alloc(). This is needed for annotating
a certain kmemcheck false positive.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
---
 include/linux/fs.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/linux/fs.h b/include/linux/fs.h
index 5bed436..e45ad64 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1924,8 +1924,9 @@ extern void __init vfs_caches_init(unsigned long);
 
 extern struct kmem_cache *names_cachep;
 
-#define __getname()	kmem_cache_alloc(names_cachep, GFP_KERNEL)
-#define __putname(name) kmem_cache_free(names_cachep, (void *)(name))
+#define __getname_gfp(gfp)	kmem_cache_alloc(names_cachep, (gfp))
+#define __getname()		__getname_gfp(GFP_KERNEL)
+#define __putname(name)		kmem_cache_free(names_cachep, (void *)(name))
 #ifndef CONFIG_AUDITSYSCALL
 #define putname(name)   __putname(name)
 #else
-- 
1.6.0.6


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-16  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-16  9:51 [PATCH 1/4] fs: introduce __getname_gfp() Vegard Nossum
2009-05-16  9:51 ` [PATCH 2/4] kmemcheck: add __GFP_NOTRACK_FALSE_POSITIVE flag Vegard Nossum
2009-05-16  9:51   ` [PATCH 3/4] kmemcheck: fix do_mount_root() false positive Vegard Nossum
2009-05-16  9:51     ` [PATCH 4/4] kmemcheck: fix __send_signal() " Vegard Nossum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®