提交 07903c02 编写于 作者: S Steven Whitehouse

[GFS2] Tweek unlock test in readpage()

This make the unlock test a bit simpler.
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
上级 dc41aeed
......@@ -247,8 +247,7 @@ static int gfs2_readpage(struct file *file, struct page *page)
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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册