projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc41aee
)
[GFS2] Tweek unlock test in readpage()
author
Steven Whitehouse
<swhiteho@redhat.com>
Mon, 18 Sep 2006 21:30:05 +0000
(17:30 -0400)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Mon, 18 Sep 2006 21:30:05 +0000
(17:30 -0400)
This make the unlock test a bit simpler.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_address.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/ops_address.c
b/fs/gfs2/ops_address.c
index
25d7025
..
7cd53d1
100644
(file)
--- a/
fs/gfs2/ops_address.c
+++ b/
fs/gfs2/ops_address.c
@@
-247,8
+247,7
@@
skip_lock:
if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags)))
error = -EIO;
- if (gf && !test_bit(GFF_EXLOCK, &gf->f_flags) &&
- file != &gfs2_internal_file_sentinel) {
+ if (do_unlock) {
gfs2_glock_dq_m(1, &gh);
gfs2_holder_uninit(&gh);
}