mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
[GFS2] Tweek unlock test in readpage()
This make the unlock test a bit simpler. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
parent
dc41aeedef
commit
07903c02d0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user