Lines Matching refs:bdev
459 struct super_block *get_super(struct block_device *bdev) in get_super() argument
463 if (!bdev) in get_super()
471 if (sb->s_bdev == bdev) { in get_super()
499 struct super_block *get_active_super(struct block_device *bdev) in get_active_super() argument
503 if (!bdev) in get_active_super()
511 if (sb->s_bdev == bdev) { in get_active_super()
774 struct block_device *bdev; in mount_bdev() local
782 bdev = blkdev_get_by_path(dev_name, mode, fs_type); in mount_bdev()
783 if (IS_ERR(bdev)) in mount_bdev()
784 return ERR_CAST(bdev); in mount_bdev()
791 mutex_lock(&bdev->bd_fsfreeze_mutex); in mount_bdev()
792 if (bdev->bd_fsfreeze_count > 0) { in mount_bdev()
793 mutex_unlock(&bdev->bd_fsfreeze_mutex); in mount_bdev()
797 s = sget(fs_type, test_bdev_super, set_bdev_super, bdev); in mount_bdev()
798 mutex_unlock(&bdev->bd_fsfreeze_mutex); in mount_bdev()
817 blkdev_put(bdev, mode); in mount_bdev()
824 strlcpy(s->s_id, bdevname(bdev, b), sizeof(s->s_id)); in mount_bdev()
825 sb_set_blocksize(s, block_size(bdev)); in mount_bdev()
833 bdev->bd_super = s; in mount_bdev()
841 blkdev_put(bdev, mode); in mount_bdev()
849 struct block_device *bdev = sb->s_bdev; in kill_block_super() local
852 bdev->bd_super = NULL; in kill_block_super()
854 sync_blockdev(bdev); in kill_block_super()
856 blkdev_put(bdev, mode | FMODE_EXCL); in kill_block_super()