提交 4dcc03fc 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

proc: make proc_subdir_lock static

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 335eb531
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "internal.h" #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) static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de)
{ {
......
...@@ -178,8 +178,6 @@ extern bool proc_fill_cache(struct file *, struct dir_context *, const char *, i ...@@ -178,8 +178,6 @@ extern bool proc_fill_cache(struct file *, struct dir_context *, const char *, i
/* /*
* generic.c * generic.c
*/ */
extern spinlock_t proc_subdir_lock;
extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int); extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int);
extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *, extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *,
struct dentry *); struct dentry *);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册