/* When not using a directory, most resource names will hash to a new static master nodeid and the resource will need to be remastered.  */
static int recover_master_static(struct dlm_rsb *r)
/* When not using a directory, most resource names will hash to a new static master nodeid and the resource will need to be remastered.  */
static int recover_master_static(struct dlm_rsb *r)
{
	int master = dlm_dir_nodeid(r);
	if (master == dlm_our_nodeid())
		master = 0;
	if (r->res_nodeid != master) {
		if (is_master(r))
			dlm_purge_mstcpy_locks(r);
		set_new_master(r, master);
		return 1;
	}
	return 0;
}