diff options
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r-- | fs/gfs2/glops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index dac6559e2195..cdd1c5f06f45 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c | |||
@@ -554,7 +554,7 @@ static void iopen_go_callback(struct gfs2_glock *gl, bool remote) | |||
554 | struct gfs2_inode *ip = gl->gl_object; | 554 | struct gfs2_inode *ip = gl->gl_object; |
555 | struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; | 555 | struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; |
556 | 556 | ||
557 | if (!remote || (sdp->sd_vfs->s_flags & MS_RDONLY)) | 557 | if (!remote || sb_rdonly(sdp->sd_vfs)) |
558 | return; | 558 | return; |
559 | 559 | ||
560 | if (gl->gl_demote_state == LM_ST_UNLOCKED && | 560 | if (gl->gl_demote_state == LM_ST_UNLOCKED && |