aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2014-08-08 17:21:29 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-08 18:57:22 -0400
commit4dcc03fc4553943c8bae086aa826bb75171e82a1 (patch)
treef74718f40a3ab875f2b3d3d9f74ebf9a0d81c750 /fs
parent335eb53158466a4c4d018fa53ceb8c8ba1067fa3 (diff)
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')
-rw-r--r--fs/proc/generic.c2
-rw-r--r--fs/proc/internal.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 190862e89880..317b72641ebf 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -27,7 +27,7 @@
27 27
28#include "internal.h" 28#include "internal.h"
29 29
30DEFINE_SPINLOCK(proc_subdir_lock); 30static DEFINE_SPINLOCK(proc_subdir_lock);
31 31
32static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de) 32static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de)
33{ 33{
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index a38408a1dd84..a17accbd05ee 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
178/* 178/*
179 * generic.c 179 * generic.c
180 */ 180 */
181extern spinlock_t proc_subdir_lock;
182
183extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int); 181extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int);
184extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *, 182extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *,
185 struct dentry *); 183 struct dentry *);