aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-04-07 16:28:07 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-04-07 16:28:07 -0400
commited3865079b573ef55dc13ab0bfb242ed5ebab4c1 (patch)
tree805051b854553a04cc6bb5082a74e3030216372b /fs/gfs2/log.c
parentb09e593d799560f1a0782c20ac5900058390a26f (diff)
[GFS2] Finally get ref counting correct
The last patch missed some other instances of incorrect ref counting, this fixes all of those too. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r--fs/gfs2/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index cadfef193e55..0b26d6a74118 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -196,7 +196,6 @@ int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks)
196 196
197void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) 197void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks)
198{ 198{
199 up_read(&sdp->sd_log_flush_lock);
200 199
201 gfs2_log_lock(sdp); 200 gfs2_log_lock(sdp);
202 sdp->sd_log_blks_free += blks; 201 sdp->sd_log_blks_free += blks;
@@ -204,6 +203,7 @@ void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks)
204 gfs2_assert_withdraw(sdp, 203 gfs2_assert_withdraw(sdp,
205 sdp->sd_log_blks_free <= sdp->sd_jdesc->jd_blocks); 204 sdp->sd_log_blks_free <= sdp->sd_jdesc->jd_blocks);
206 gfs2_log_unlock(sdp); 205 gfs2_log_unlock(sdp);
206 up_read(&sdp->sd_log_flush_lock);
207} 207}
208 208
209static uint64_t log_bmap(struct gfs2_sbd *sdp, unsigned int lbn) 209static uint64_t log_bmap(struct gfs2_sbd *sdp, unsigned int lbn)