]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.suse/ocfs2-make-la_debug_mutex-static.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / ocfs2-make-la_debug_mutex-static.patch
CommitLineData
2cb7cef9
BS
1From: Mark Fasheh <mfasheh@suse.com>
2Subject: ocfs2: make la_debug_mutex static
3Patch-mainline: 2.6.28
4
5It can also be moved into ocfs2_la_debug_read().
6
7Signed-off-by: Mark Fasheh <mfasheh@suse.com>
8---
9 fs/ocfs2/localalloc.c | 3 +--
10 1 files changed, 1 insertions(+), 2 deletions(-)
11
12Index: linux-2.6.27/fs/ocfs2/localalloc.c
13===================================================================
14--- linux-2.6.27.orig/fs/ocfs2/localalloc.c
15+++ linux-2.6.27/fs/ocfs2/localalloc.c
16@@ -76,8 +76,6 @@ static int ocfs2_local_alloc_slide_windo
17
18 #ifdef CONFIG_OCFS2_FS_STATS
19
20-DEFINE_MUTEX(la_debug_mutex);
21-
22 static int ocfs2_la_debug_open(struct inode *inode, struct file *file)
23 {
24 file->private_data = inode->i_private;
25@@ -89,6 +87,7 @@ static int ocfs2_la_debug_open(struct in
26 static ssize_t ocfs2_la_debug_read(struct file *file, char __user *userbuf,
27 size_t count, loff_t *ppos)
28 {
29+ static DEFINE_MUTEX(la_debug_mutex);
30 struct ocfs2_super *osb = file->private_data;
31 int written, ret;
32 char *buf = osb->local_alloc_debug_buf;