diff options
| author | Chris Wright <chrisw@osdl.org> | 2005-02-28 22:30:53 -0800 |
|---|---|---|
| committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-02-28 22:30:53 -0800 |
| commit | 6df791c286f9c010a026dd4b50f6749a609cfcc2 (patch) | |
| tree | d87cb7c080d28fdce67b845b61b91a44b819e142 /include/linux/fs.h | |
| parent | a0110032c256fdaf577bbd6ed1b6550f88958170 (diff) | |
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 <chrisw@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
| -rw-r--r-- | include/linux/fs.h | 9 |
1 files changed, 1 insertions, 8 deletions
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 <linux/list.h> #include <linux/radix-tree.h> #include <linux/prio_tree.h> -#include <linux/audit.h> #include <linux/init.h> #include <asm/atomic.h> @@ -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 *); |
