@@ -391,26 +391,19 @@ STATIC void
391
391
xfs_close_devices (
392
392
struct xfs_mount * mp )
393
393
{
394
- struct dax_device * dax_ddev = mp -> m_ddev_targp -> bt_daxdev ;
395
-
396
394
if (mp -> m_logdev_targp && mp -> m_logdev_targp != mp -> m_ddev_targp ) {
397
395
struct block_device * logdev = mp -> m_logdev_targp -> bt_bdev ;
398
- struct dax_device * dax_logdev = mp -> m_logdev_targp -> bt_daxdev ;
399
396
400
397
xfs_free_buftarg (mp -> m_logdev_targp );
401
398
xfs_blkdev_put (logdev );
402
- fs_put_dax (dax_logdev );
403
399
}
404
400
if (mp -> m_rtdev_targp ) {
405
401
struct block_device * rtdev = mp -> m_rtdev_targp -> bt_bdev ;
406
- struct dax_device * dax_rtdev = mp -> m_rtdev_targp -> bt_daxdev ;
407
402
408
403
xfs_free_buftarg (mp -> m_rtdev_targp );
409
404
xfs_blkdev_put (rtdev );
410
- fs_put_dax (dax_rtdev );
411
405
}
412
406
xfs_free_buftarg (mp -> m_ddev_targp );
413
- fs_put_dax (dax_ddev );
414
407
}
415
408
416
409
/*
@@ -428,8 +421,6 @@ xfs_open_devices(
428
421
struct xfs_mount * mp )
429
422
{
430
423
struct block_device * ddev = mp -> m_super -> s_bdev ;
431
- struct dax_device * dax_ddev = fs_dax_get_by_bdev (ddev );
432
- struct dax_device * dax_logdev = NULL , * dax_rtdev = NULL ;
433
424
struct block_device * logdev = NULL , * rtdev = NULL ;
434
425
int error ;
435
426
@@ -439,8 +430,7 @@ xfs_open_devices(
439
430
if (mp -> m_logname ) {
440
431
error = xfs_blkdev_get (mp , mp -> m_logname , & logdev );
441
432
if (error )
442
- goto out ;
443
- dax_logdev = fs_dax_get_by_bdev (logdev );
433
+ return error ;
444
434
}
445
435
446
436
if (mp -> m_rtname ) {
@@ -454,25 +444,24 @@ xfs_open_devices(
454
444
error = - EINVAL ;
455
445
goto out_close_rtdev ;
456
446
}
457
- dax_rtdev = fs_dax_get_by_bdev (rtdev );
458
447
}
459
448
460
449
/*
461
450
* Setup xfs_mount buffer target pointers
462
451
*/
463
452
error = - ENOMEM ;
464
- mp -> m_ddev_targp = xfs_alloc_buftarg (mp , ddev , dax_ddev );
453
+ mp -> m_ddev_targp = xfs_alloc_buftarg (mp , ddev );
465
454
if (!mp -> m_ddev_targp )
466
455
goto out_close_rtdev ;
467
456
468
457
if (rtdev ) {
469
- mp -> m_rtdev_targp = xfs_alloc_buftarg (mp , rtdev , dax_rtdev );
458
+ mp -> m_rtdev_targp = xfs_alloc_buftarg (mp , rtdev );
470
459
if (!mp -> m_rtdev_targp )
471
460
goto out_free_ddev_targ ;
472
461
}
473
462
474
463
if (logdev && logdev != ddev ) {
475
- mp -> m_logdev_targp = xfs_alloc_buftarg (mp , logdev , dax_logdev );
464
+ mp -> m_logdev_targp = xfs_alloc_buftarg (mp , logdev );
476
465
if (!mp -> m_logdev_targp )
477
466
goto out_free_rtdev_targ ;
478
467
} else {
@@ -488,14 +477,9 @@ xfs_open_devices(
488
477
xfs_free_buftarg (mp -> m_ddev_targp );
489
478
out_close_rtdev :
490
479
xfs_blkdev_put (rtdev );
491
- fs_put_dax (dax_rtdev );
492
480
out_close_logdev :
493
- if (logdev && logdev != ddev ) {
481
+ if (logdev && logdev != ddev )
494
482
xfs_blkdev_put (logdev );
495
- fs_put_dax (dax_logdev );
496
- }
497
- out :
498
- fs_put_dax (dax_ddev );
499
483
return error ;
500
484
}
501
485
0 commit comments