From 6df791c286f9c010a026dd4b50f6749a609cfcc2 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Mon, 28 Feb 2005 22:30:53 -0800 Subject: Currently touching audit.h triggers a large rebuild because it's sucked in via fs.h. It's there because of the getname()/putname() requirements that come with CONFIG_AUDITSYSCALL. Remove header dependency by pushing relevant putname() implementation into fs/namei.c. It adds function call overhead for putname() callers when CONFIG_AUDITSYSCALL is set, quite minor cost for detangled source. Signed-off-by: Chris Wright --- include/linux/fs.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'include/linux') diff --git a/include/linux/fs.h b/include/linux/fs.h index 30cb440cb6c8..2c2a20bc3ce7 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -210,7 +210,6 @@ extern int dir_notify_enable; #include #include #include -#include #include #include @@ -1268,13 +1267,7 @@ extern void __init vfs_caches_init(unsigned long); #ifndef CONFIG_AUDITSYSCALL #define putname(name) __putname(name) #else -#define putname(name) \ - do { \ - if (unlikely(current->audit_context)) \ - audit_putname(name); \ - else \ - __putname(name); \ - } while (0) +extern void putname(const char *name); #endif extern int register_blkdev(unsigned int, const char *); -- cgit v1.2.3