/* Propogate the new master nodeid to locks The NEW_MASTER flag tells dlm_recover_locks() which rsb's to consider. The NEW_MASTER2 flag tells recover_lvb() and set_locks_purged() which rsb's to consider.  */
static void set_new_master(struct dlm_rsb *r, int nodeid)
/* Propogate the new master nodeid to locks The NEW_MASTER flag tells dlm_recover_locks() which rsb's to consider. The NEW_MASTER2 flag tells recover_lvb() and set_locks_purged() which rsb's to consider.  */
static void set_new_master(struct dlm_rsb *r, int nodeid)
{
	lock_rsb(r);
	r->res_nodeid = nodeid;
	set_master_lkbs(r);
	rsb_set_flag(r, RSB_NEW_MASTER);
	rsb_set_flag(r, RSB_NEW_MASTER2);
	unlock_rsb(r);
}