提交 4cc81245 编写于 作者: M Mark Fasheh

ocfs2: make la_debug_mutex static

It can also be moved into ocfs2_la_debug_read().
Signed-off-by: NMark Fasheh <mfasheh@suse.com>
上级 009d3750
...@@ -76,8 +76,6 @@ static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb, ...@@ -76,8 +76,6 @@ static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb,
#ifdef CONFIG_OCFS2_FS_STATS #ifdef CONFIG_OCFS2_FS_STATS
DEFINE_MUTEX(la_debug_mutex);
static int ocfs2_la_debug_open(struct inode *inode, struct file *file) static int ocfs2_la_debug_open(struct inode *inode, struct file *file)
{ {
file->private_data = inode->i_private; file->private_data = inode->i_private;
...@@ -89,6 +87,7 @@ static int ocfs2_la_debug_open(struct inode *inode, struct file *file) ...@@ -89,6 +87,7 @@ static int ocfs2_la_debug_open(struct inode *inode, struct file *file)
static ssize_t ocfs2_la_debug_read(struct file *file, char __user *userbuf, static ssize_t ocfs2_la_debug_read(struct file *file, char __user *userbuf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
static DEFINE_MUTEX(la_debug_mutex);
struct ocfs2_super *osb = file->private_data; struct ocfs2_super *osb = file->private_data;
int written, ret; int written, ret;
char *buf = osb->local_alloc_debug_buf; char *buf = osb->local_alloc_debug_buf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册