genhd.c (0d02129e76edf91cf04fabf1efbc3a9a1f1d729a) genhd.c (977115c0f664e016a6b2774d4f97116ade23d732)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * gendisk handling
4 */
5
6#include <linux/module.h>
7#include <linux/ctype.h>
8#include <linux/fs.h>

--- 916 unchanged lines hidden (view full) ---

925 rcu_read_lock();
926 bdev = __disk_get_part(disk, partno);
927 if (bdev && !bdgrab(bdev))
928 bdev = NULL;
929 rcu_read_unlock();
930
931 return bdev;
932}
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * gendisk handling
4 */
5
6#include <linux/module.h>
7#include <linux/ctype.h>
8#include <linux/fs.h>

--- 916 unchanged lines hidden (view full) ---

925 rcu_read_lock();
926 bdev = __disk_get_part(disk, partno);
927 if (bdev && !bdgrab(bdev))
928 bdev = NULL;
929 rcu_read_unlock();
930
931 return bdev;
932}
933EXPORT_SYMBOL(bdget_disk);
934
935/*
936 * print a full list of all partitions - intended for places where the root
937 * filesystem can't be mounted and thus to give the victim some idea of what
938 * went wrong
939 */
940void __init printk_all_partitions(void)
941{

--- 1205 unchanged lines hidden ---
933
934/*
935 * print a full list of all partitions - intended for places where the root
936 * filesystem can't be mounted and thus to give the victim some idea of what
937 * went wrong
938 */
939void __init printk_all_partitions(void)
940{

--- 1205 unchanged lines hidden ---