aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/unlinked.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-02-21 12:51:39 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2006-02-21 12:51:39 +0000
commitf55ab26a8f92a23988c3e6da28dae4741933a4e2 (patch)
treeb6f9e89ce1b2ccde8d81314aeea06f6a02f882f7 /fs/gfs2/unlinked.c
parent5c4e9e036678fae65c9288e1c00a6f33cd447283 (diff)
downloadkernel_samsung_smdk4412-f55ab26a8f92a23988c3e6da28dae4741933a4e2.zip
kernel_samsung_smdk4412-f55ab26a8f92a23988c3e6da28dae4741933a4e2.tar.gz
kernel_samsung_smdk4412-f55ab26a8f92a23988c3e6da28dae4741933a4e2.tar.bz2
[GFS2] Use mutices rather than semaphores
As well as a number of minor bug fixes, this patch changes GFS to use mutices rather than semaphores. This results in better information in case there are any locking problems. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/unlinked.c')
-rw-r--r--fs/gfs2/unlinked.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/unlinked.c b/fs/gfs2/unlinked.c
index 405b91b..e92a3a1 100644
--- a/fs/gfs2/unlinked.c
+++ b/fs/gfs2/unlinked.c
@@ -46,12 +46,12 @@ static int munge_ondisk(struct gfs2_sbd *sdp, unsigned int slot,
goto out;
}
- down(&sdp->sd_unlinked_mutex);
+ mutex_lock(&sdp->sd_unlinked_mutex);
gfs2_trans_add_bh(ip->i_gl, bh, 1);
gfs2_unlinked_tag_out(ut, bh->b_data +
sizeof(struct gfs2_meta_header) +
offset * sizeof(struct gfs2_unlinked_tag));
- up(&sdp->sd_unlinked_mutex);
+ mutex_unlock(&sdp->sd_unlinked_mutex);
out:
brelse(bh);