summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef Whiter <jwhiter@redhat.com>2007-02-21 14:37:59 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2007-03-09 10:50:32 -0800
commitdaed330d4e1ca96e81ed0e7fce6de4ac22d9050c (patch)
tree91b02ffaf54eac8d8a348c4a3b6ac2acfd98e318
parent55eb1f49d93b85b3e2c2130c4ea2aaf557996b00 (diff)
gfs2: fix locking mistake
Fix a locking mistake in the quota code, we do a mutex_lock instead of a mutex_unlock. Signed-off-by: Josef Whiter <jwhiter@redhat.com> Cc: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--fs/gfs2/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index d0db881b55d2..c186857e48a8 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -279,7 +279,7 @@ static int bh_get(struct gfs2_quota_data *qd)
(bh->b_data + sizeof(struct gfs2_meta_header) +
offset * sizeof(struct gfs2_quota_change));
- mutex_lock(&sdp->sd_quota_mutex);
+ mutex_unlock(&sdp->sd_quota_mutex);
return 0;