diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2014-08-08 21:21:29 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 22:57:22 (GMT) |
commit | 4dcc03fc4553943c8bae086aa826bb75171e82a1 (patch) | |
tree | f74718f40a3ab875f2b3d3d9f74ebf9a0d81c750 /fs/proc | |
parent | 335eb53158466a4c4d018fa53ceb8c8ba1067fa3 (diff) | |
download | linux-4dcc03fc4553943c8bae086aa826bb75171e82a1.tar.xz |
proc: make proc_subdir_lock static
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/generic.c | 2 | ||||
-rw-r--r-- | fs/proc/internal.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 190862e..317b726 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -27,7 +27,7 @@ #include "internal.h" -DEFINE_SPINLOCK(proc_subdir_lock); +static DEFINE_SPINLOCK(proc_subdir_lock); static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de) { diff --git a/fs/proc/internal.h b/fs/proc/internal.h index a38408a..a17accbd 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -178,8 +178,6 @@ extern bool proc_fill_cache(struct file *, struct dir_context *, const char *, i /* * generic.c */ -extern spinlock_t proc_subdir_lock; - extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int); extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *, struct dentry *); |