Lines Matching full:sdp
36 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_error() local
38 fs_err(sdp, in gfs2_ail_error()
43 fs_err(sdp, "AIL glock %u:%llu mapping %p\n", in gfs2_ail_error()
46 gfs2_lm(sdp, "AIL error\n"); in gfs2_ail_error()
47 gfs2_withdraw_delayed(sdp); in gfs2_ail_error()
62 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_ail_flush() local
68 gfs2_log_lock(sdp); in __gfs2_ail_flush()
69 spin_lock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
79 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush()
83 spin_unlock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
84 gfs2_log_unlock(sdp); in __gfs2_ail_flush()
90 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl() local
103 * the sdp revoke queue, in which case, we still want to flush in gfs2_ail_empty_gl()
106 * If the sdp revoke list is empty too, we might still have an in gfs2_ail_empty_gl()
113 gfs2_log_lock(sdp); in gfs2_ail_empty_gl()
114 have_revokes = !list_empty(&sdp->sd_log_revokes); in gfs2_ail_empty_gl()
115 log_in_flight = atomic_read(&sdp->sd_log_in_flight); in gfs2_ail_empty_gl()
116 gfs2_log_unlock(sdp); in gfs2_ail_empty_gl()
120 log_flush_wait(sdp); in gfs2_ail_empty_gl()
126 ret = __gfs2_trans_begin(&tr, sdp, 0, revokes, _RET_IP_); in gfs2_ail_empty_gl()
130 gfs2_trans_end(sdp); in gfs2_ail_empty_gl()
133 gfs2_log_flush(sdp, NULL, GFS2_LOG_HEAD_FLUSH_NORMAL | in gfs2_ail_empty_gl()
140 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_flush() local
147 ret = gfs2_trans_begin(sdp, 0, revokes); in gfs2_ail_flush()
151 gfs2_trans_end(sdp); in gfs2_ail_flush()
152 gfs2_log_flush(sdp, NULL, GFS2_LOG_HEAD_FLUSH_NORMAL | in gfs2_ail_flush()
164 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_rgrp_metasync() local
165 struct address_space *metamapping = &sdp->sd_aspace; in gfs2_rgrp_metasync()
167 const unsigned bsize = sdp->sd_sb.sb_bsize; in gfs2_rgrp_metasync()
174 WARN_ON_ONCE(error && !gfs2_withdrawn(sdp)); in gfs2_rgrp_metasync()
177 gfs2_io_error(sdp); in gfs2_rgrp_metasync()
192 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_sync() local
200 gfs2_log_flush(sdp, gl, GFS2_LOG_HEAD_FLUSH_NORMAL | in rgrp_go_sync()
221 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_inval() local
222 struct address_space *mapping = &sdp->sd_aspace; in rgrp_go_inval()
224 const unsigned bsize = sdp->sd_sb.sb_bsize; in rgrp_go_inval()
386 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in inode_go_demote_ok() local
388 if (sdp->sd_jindex == gl->gl_object || sdp->sd_rindex == gl->gl_object) in inode_go_demote_ok()
557 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in freeze_go_sync() local
570 if (gl->gl_state == LM_ST_SHARED && !gfs2_withdrawn(sdp) && in freeze_go_sync()
571 !test_bit(SDF_NORECOVERY, &sdp->sd_flags)) { in freeze_go_sync()
572 atomic_set(&sdp->sd_freeze_state, SFS_STARTING_FREEZE); in freeze_go_sync()
573 error = freeze_super(sdp->sd_vfs); in freeze_go_sync()
575 fs_info(sdp, "GFS2: couldn't freeze filesystem: %d\n", in freeze_go_sync()
577 if (gfs2_withdrawn(sdp)) { in freeze_go_sync()
578 atomic_set(&sdp->sd_freeze_state, SFS_UNFROZEN); in freeze_go_sync()
581 gfs2_assert_withdraw(sdp, 0); in freeze_go_sync()
583 queue_work(gfs2_freeze_wq, &sdp->sd_freeze_work); in freeze_go_sync()
584 if (test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) in freeze_go_sync()
585 gfs2_log_flush(sdp, NULL, GFS2_LOG_HEAD_FLUSH_FREEZE | in freeze_go_sync()
588 atomic_set(&sdp->sd_freeze_state, SFS_FROZEN); in freeze_go_sync()
599 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in freeze_go_xmote_bh() local
600 struct gfs2_inode *ip = GFS2_I(sdp->sd_jdesc->jd_inode); in freeze_go_xmote_bh()
605 if (test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) { in freeze_go_xmote_bh()
608 error = gfs2_find_jhead(sdp->sd_jdesc, &head, false); in freeze_go_xmote_bh()
609 if (gfs2_assert_withdraw_delayed(sdp, !error)) in freeze_go_xmote_bh()
611 if (gfs2_assert_withdraw_delayed(sdp, head.lh_flags & in freeze_go_xmote_bh()
614 sdp->sd_log_sequence = head.lh_sequence + 1; in freeze_go_xmote_bh()
615 gfs2_log_pointers_init(sdp, head.lh_blkno); in freeze_go_xmote_bh()
642 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in iopen_go_callback() local
644 if (!remote || sb_rdonly(sdp->sd_vfs)) in iopen_go_callback()
687 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in nondisk_go_callback() local
701 if (test_bit(SDF_NORECOVERY, &sdp->sd_flags) || in nondisk_go_callback()
702 test_bit(SDF_WITHDRAWN, &sdp->sd_flags) || in nondisk_go_callback()
703 test_bit(SDF_REMOTE_WITHDRAW, &sdp->sd_flags)) in nondisk_go_callback()
711 if (sdp->sd_args.ar_spectator) { in nondisk_go_callback()
712 fs_warn(sdp, "Spectator node cannot recover journals.\n"); in nondisk_go_callback()
716 fs_warn(sdp, "Some node has withdrawn; checking for recovery.\n"); in nondisk_go_callback()
717 set_bit(SDF_REMOTE_WITHDRAW, &sdp->sd_flags); in nondisk_go_callback()
725 queue_delayed_work(gfs2_control_wq, &sdp->sd_control_work, 0); in nondisk_go_callback()