From: Josef Whiter Date: Wed, 21 Feb 2007 22:37:59 +0000 (-0800) Subject: gfs2: fix locking mistake X-Git-Tag: v2.6.20.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daed330d4e1ca96e81ed0e7fce6de4ac22d9050c;p=thirdparty%2Fkernel%2Fstable.git 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 Cc: Steven Whitehouse Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index d0db881b55d2c..c186857e48a80 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;