summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-04 15:47:36 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-16 12:16:45 -0500
commite81e3f4dca6c54116a24aec217d2c15c6f58ada5 (patch)
tree4cbaf8b4573a4f4dac2dafc2bebffe398a984b3d /fs
parentb75b5086be6504132eadb22a907854e0bf52e365 (diff)
downloadlinux-3.10-e81e3f4dca6c54116a24aec217d2c15c6f58ada5.tar.gz
linux-3.10-e81e3f4dca6c54116a24aec217d2c15c6f58ada5.tar.bz2
linux-3.10-e81e3f4dca6c54116a24aec217d2c15c6f58ada5.zip
fs: move get_empty_filp() deffinition to internal.h
All users outside of fs/ of get_empty_filp() have been removed. This patch moves the definition from the include/ directory to internal.h so no new users crop up and removes the EXPORT_SYMBOL. I'd love to see open intents stop using it too, but that's a problem for another day and a smarter developer! Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/file_table.c2
-rw-r--r--fs/internal.h1
-rw-r--r--fs/namei.c2
-rw-r--r--fs/open.c2
4 files changed, 7 insertions, 0 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 163cd28314e..361d76be829 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -24,6 +24,8 @@
#include <asm/atomic.h>
+#include "internal.h"
+
/* sysctl tunables... */
struct files_stat_struct files_stat = {
.max_files = NR_FILE
diff --git a/fs/internal.h b/fs/internal.h
index 515175b8b72..f67cd141d9a 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -79,6 +79,7 @@ extern void chroot_fs_refs(struct path *, struct path *);
* file_table.c
*/
extern void mark_files_ro(struct super_block *);
+extern struct file *get_empty_filp(void);
/*
* super.c
diff --git a/fs/namei.c b/fs/namei.c
index 8c8b379b94a..1fc038b117b 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -35,6 +35,8 @@
#include <linux/fs_struct.h>
#include <asm/uaccess.h>
+#include "internal.h"
+
#define ACC_MODE(x) ("\000\004\002\006"[(x)&O_ACCMODE])
/* [Feb-1997 T. Schoebel-Theuer]
diff --git a/fs/open.c b/fs/open.c
index b4b31d277f3..d95651e8be9 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -31,6 +31,8 @@
#include <linux/falloc.h>
#include <linux/fs_struct.h>
+#include "internal.h"
+
int vfs_statfs(struct dentry *dentry, struct kstatfs *buf)
{
int retval = -ENODEV;