diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-21 07:51:39 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-21 07:51:39 -0500 |
commit | f55ab26a8f92a23988c3e6da28dae4741933a4e2 (patch) | |
tree | b6f9e89ce1b2ccde8d81314aeea06f6a02f882f7 /fs/gfs2/trans.c | |
parent | 5c4e9e036678fae65c9288e1c00a6f33cd447283 (diff) |
[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/trans.c')
-rw-r--r-- | fs/gfs2/trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 104e664fa182..0a0ea70eac4c 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
@@ -33,7 +33,7 @@ int gfs2_trans_begin_i(struct gfs2_sbd *sdp, unsigned int blocks, | |||
33 | return -EINVAL; | 33 | return -EINVAL; |
34 | } | 34 | } |
35 | 35 | ||
36 | tr = kzalloc(sizeof(struct gfs2_trans), GFP_KERNEL); | 36 | tr = kzalloc(sizeof(struct gfs2_trans), GFP_NOFS); |
37 | if (!tr) | 37 | if (!tr) |
38 | return -ENOMEM; | 38 | return -ENOMEM; |
39 | 39 | ||
@@ -51,7 +51,7 @@ int gfs2_trans_begin_i(struct gfs2_sbd *sdp, unsigned int blocks, | |||
51 | 51 | ||
52 | error = -ENOMEM; | 52 | error = -ENOMEM; |
53 | tr->tr_t_gh = gfs2_holder_get(sdp->sd_trans_gl, LM_ST_SHARED, | 53 | tr->tr_t_gh = gfs2_holder_get(sdp->sd_trans_gl, LM_ST_SHARED, |
54 | GL_NEVER_RECURSE, GFP_KERNEL); | 54 | GL_NEVER_RECURSE, GFP_NOFS); |
55 | if (!tr->tr_t_gh) | 55 | if (!tr->tr_t_gh) |
56 | goto fail; | 56 | goto fail; |
57 | 57 | ||