Lines Matching refs:majdev

23 		int majdev, int mindev, char *path);
159 int majdev, mindev; in get_device_numbers() local
164 majdev = major(st.st_rdev); in get_device_numbers()
167 majdev = major(st.st_rdev); in get_device_numbers()
169 if (fio_lookup_raw(st.st_rdev, &majdev, &mindev)) in get_device_numbers()
174 majdev = major(st.st_dev); in get_device_numbers()
188 majdev = major(st.st_dev); in get_device_numbers()
193 *maj = majdev; in get_device_numbers()
228 int majdev, mindev; in find_add_disk_slaves() local
255 if (read_block_dev_entry(temppath, &majdev, &mindev)) { in find_add_disk_slaves()
264 slavedu = disk_util_exists(majdev, mindev); in find_add_disk_slaves()
269 __init_per_file_disk_util(td, majdev, mindev, temppath); in find_add_disk_slaves()
270 slavedu = disk_util_exists(majdev, mindev); in find_add_disk_slaves()
283 static struct disk_util *disk_util_add(struct thread_data *td, int majdev, in disk_util_add() argument
290 dprint(FD_DISKUTIL, "add maj/min %d/%d: %s\n", majdev, mindev, path); in disk_util_add()
309 du->major = majdev; in disk_util_add()
342 static int check_dev_match(int majdev, int mindev, char *path) in check_dev_match() argument
349 if (majdev == major && mindev == minor) in check_dev_match()
355 static int find_block_dir(int majdev, int mindev, char *path, int link_ok) in find_block_dir() argument
375 if (!check_dev_match(majdev, mindev, full_path)) { in find_block_dir()
396 found = find_block_dir(majdev, mindev, full_path, 0); in find_block_dir()
408 int majdev, int mindev, in __init_per_file_disk_util() argument
435 return disk_util_add(td, majdev, mindev, path); in __init_per_file_disk_util()
444 int mindev, majdev; in init_per_file_disk_util() local
446 if (get_device_numbers(filename, &majdev, &mindev)) in init_per_file_disk_util()
449 dprint(FD_DISKUTIL, "%s belongs to maj/min %d/%d\n", filename, majdev, in init_per_file_disk_util()
452 du = disk_util_exists(majdev, mindev); in init_per_file_disk_util()
466 if (mindev == last_mindev && majdev == last_majdev) in init_per_file_disk_util()
470 last_majdev = majdev; in init_per_file_disk_util()
473 if (!find_block_dir(majdev, mindev, foo, 1)) in init_per_file_disk_util()
476 return __init_per_file_disk_util(td, majdev, mindev, foo); in init_per_file_disk_util()