• Home
  • Raw
  • Download

Lines Matching refs:bdev

804 struct super_block *get_super(struct block_device *bdev)  in get_super()  argument
808 if (!bdev) in get_super()
816 if (sb->s_bdev == bdev) { in get_super()
842 struct super_block *get_active_super(struct block_device *bdev) in get_active_super() argument
846 if (!bdev) in get_active_super()
854 if (sb->s_bdev == bdev) { in get_active_super()
1294 struct block_device *bdev; in get_tree_bdev() local
1305 bdev = blkdev_get_by_path(fc->source, mode, fc->fs_type); in get_tree_bdev()
1306 if (IS_ERR(bdev)) { in get_tree_bdev()
1308 return PTR_ERR(bdev); in get_tree_bdev()
1315 mutex_lock(&bdev->bd_fsfreeze_mutex); in get_tree_bdev()
1316 if (bdev->bd_fsfreeze_count > 0) { in get_tree_bdev()
1317 mutex_unlock(&bdev->bd_fsfreeze_mutex); in get_tree_bdev()
1318 warnf(fc, "%pg: Can't mount, blockdev is frozen", bdev); in get_tree_bdev()
1319 blkdev_put(bdev, mode); in get_tree_bdev()
1324 fc->sget_key = bdev; in get_tree_bdev()
1326 mutex_unlock(&bdev->bd_fsfreeze_mutex); in get_tree_bdev()
1328 blkdev_put(bdev, mode); in get_tree_bdev()
1335 warnf(fc, "%pg: Can't mount, would change RO state", bdev); in get_tree_bdev()
1337 blkdev_put(bdev, mode); in get_tree_bdev()
1349 blkdev_put(bdev, mode); in get_tree_bdev()
1353 snprintf(s->s_id, sizeof(s->s_id), "%pg", bdev); in get_tree_bdev()
1356 sb_set_blocksize(s, block_size(bdev)); in get_tree_bdev()
1364 bdev->bd_super = s; in get_tree_bdev()
1382 struct block_device *bdev; in mount_bdev() local
1390 bdev = blkdev_get_by_path(dev_name, mode, fs_type); in mount_bdev()
1391 if (IS_ERR(bdev)) in mount_bdev()
1392 return ERR_CAST(bdev); in mount_bdev()
1399 mutex_lock(&bdev->bd_fsfreeze_mutex); in mount_bdev()
1400 if (bdev->bd_fsfreeze_count > 0) { in mount_bdev()
1401 mutex_unlock(&bdev->bd_fsfreeze_mutex); in mount_bdev()
1406 bdev); in mount_bdev()
1407 mutex_unlock(&bdev->bd_fsfreeze_mutex); in mount_bdev()
1426 blkdev_put(bdev, mode); in mount_bdev()
1430 snprintf(s->s_id, sizeof(s->s_id), "%pg", bdev); in mount_bdev()
1433 sb_set_blocksize(s, block_size(bdev)); in mount_bdev()
1441 bdev->bd_super = s; in mount_bdev()
1449 blkdev_put(bdev, mode); in mount_bdev()
1457 struct block_device *bdev = sb->s_bdev; in kill_block_super() local
1460 bdev->bd_super = NULL; in kill_block_super()
1462 sync_blockdev(bdev); in kill_block_super()
1464 blkdev_put(bdev, mode | FMODE_EXCL); in kill_block_super()