diff options
Diffstat (limited to 'fs/gfs2/ops_address.c')
-rw-r--r-- | fs/gfs2/ops_address.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index 25d7025e43c2..7cd53d118c89 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c | |||
@@ -247,8 +247,7 @@ skip_lock: | |||
247 | if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) | 247 | if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) |
248 | error = -EIO; | 248 | error = -EIO; |
249 | 249 | ||
250 | if (gf && !test_bit(GFF_EXLOCK, &gf->f_flags) && | 250 | if (do_unlock) { |
251 | file != &gfs2_internal_file_sentinel) { | ||
252 | gfs2_glock_dq_m(1, &gh); | 251 | gfs2_glock_dq_m(1, &gh); |
253 | gfs2_holder_uninit(&gh); | 252 | gfs2_holder_uninit(&gh); |
254 | } | 253 | } |