/* This is __init_refok because we check for "initializing" before touching any of the __init sensitive things and "initializing" will be false after __init time. This can't be __init because it can be called whenever a disk is first accessed.  */
void __init_refok note_bootable_part(dev_t dev, int part, int goodness)
/* This is __init_refok because we check for "initializing" before touching any of the __init sensitive things and "initializing" will be false after __init time. This can't be __init because it can be called whenever a disk is first accessed.  */
void __init_refok note_bootable_part(dev_t dev, int part, int goodness)
{
	char *p;
	if (!initializing)
		return;
	if ((goodness <= current_root_goodness) &&
	    ROOT_DEV != DEFAULT_ROOT_DEVICE)
		return;
	p = strstr(boot_command_line, "root=");
	if (p != NULL && (p == boot_command_line || p[-1] == ' '))
		return;
	ROOT_DEV = dev + part;
	current_root_goodness = goodness;
}