projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
009d375
)
ocfs2: make la_debug_mutex static
author
Mark Fasheh
<
[email protected]
>
Tue, 7 Oct 2008 18:02:04 +0000
(11:02 -0700)
committer
Mark Fasheh
<
[email protected]
>
Tue, 14 Oct 2008 00:02:44 +0000
(17:02 -0700)
It can also be moved into ocfs2_la_debug_read().
Signed-off-by: Mark Fasheh <
[email protected]
>
fs/ocfs2/localalloc.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/localalloc.c
b/fs/ocfs2/localalloc.c
index 02227c392510e9d52cb13a86ba18add9cec8459a..b1c634d676a0efaabbc5be918bc1352b8110c054 100644
(file)
--- 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,
#ifdef CONFIG_OCFS2_FS_STATS
-DEFINE_MUTEX(la_debug_mutex);
-
static int ocfs2_la_debug_open(struct inode *inode, struct file *file)
{
file->private_data = inode->i_private;
@@
-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,
size_t count, loff_t *ppos)
{
+ static DEFINE_MUTEX(la_debug_mutex);
struct ocfs2_super *osb = file->private_data;
int written, ret;
char *buf = osb->local_alloc_debug_buf;