diff options
author | Mark Fasheh <mfasheh@suse.com> | 2008-10-07 14:02:04 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-10-13 20:02:44 -0400 |
commit | 4cc8124584610fbe087ea2bed29ca52d2d0aa84a (patch) | |
tree | 4d1da0e72b6161ba3a321ff4533ca2f1a8511adf /fs/ocfs2 | |
parent | 009d37502a7b9fc89741e66b4454afca4edc1c26 (diff) |
ocfs2: make la_debug_mutex static
It can also be moved into ocfs2_la_debug_read().
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/localalloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c index 02227c392510..b1c634d676a0 100644 --- a/fs/ocfs2/localalloc.c +++ b/fs/ocfs2/localalloc.c | |||
@@ -76,8 +76,6 @@ static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb, | |||
76 | 76 | ||
77 | #ifdef CONFIG_OCFS2_FS_STATS | 77 | #ifdef CONFIG_OCFS2_FS_STATS |
78 | 78 | ||
79 | DEFINE_MUTEX(la_debug_mutex); | ||
80 | |||
81 | static int ocfs2_la_debug_open(struct inode *inode, struct file *file) | 79 | static int ocfs2_la_debug_open(struct inode *inode, struct file *file) |
82 | { | 80 | { |
83 | file->private_data = inode->i_private; | 81 | file->private_data = inode->i_private; |
@@ -89,6 +87,7 @@ static int ocfs2_la_debug_open(struct inode *inode, struct file *file) | |||
89 | static ssize_t ocfs2_la_debug_read(struct file *file, char __user *userbuf, | 87 | static ssize_t ocfs2_la_debug_read(struct file *file, char __user *userbuf, |
90 | size_t count, loff_t *ppos) | 88 | size_t count, loff_t *ppos) |
91 | { | 89 | { |
90 | static DEFINE_MUTEX(la_debug_mutex); | ||
92 | struct ocfs2_super *osb = file->private_data; | 91 | struct ocfs2_super *osb = file->private_data; |
93 | int written, ret; | 92 | int written, ret; |
94 | char *buf = osb->local_alloc_debug_buf; | 93 | char *buf = osb->local_alloc_debug_buf; |