diff options
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index febfd8367e13..3bba1a6aba8b 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -211,7 +211,6 @@ xfs_cleanup(void) | |||
211 | */ | 211 | */ |
212 | STATIC int | 212 | STATIC int |
213 | xfs_start_flags( | 213 | xfs_start_flags( |
214 | struct bhv_vfs *vfs, | ||
215 | struct xfs_mount_args *ap, | 214 | struct xfs_mount_args *ap, |
216 | struct xfs_mount *mp) | 215 | struct xfs_mount *mp) |
217 | { | 216 | { |
@@ -336,7 +335,6 @@ xfs_start_flags( | |||
336 | */ | 335 | */ |
337 | STATIC int | 336 | STATIC int |
338 | xfs_finish_flags( | 337 | xfs_finish_flags( |
339 | struct bhv_vfs *vfs, | ||
340 | struct xfs_mount_args *ap, | 338 | struct xfs_mount_args *ap, |
341 | struct xfs_mount *mp) | 339 | struct xfs_mount *mp) |
342 | { | 340 | { |
@@ -438,11 +436,10 @@ xfs_mount( | |||
438 | struct xfs_mount_args *args, | 436 | struct xfs_mount_args *args, |
439 | cred_t *credp) | 437 | cred_t *credp) |
440 | { | 438 | { |
441 | struct bhv_vfs *vfsp = XFS_MTOVFS(mp); | ||
442 | struct block_device *ddev, *logdev, *rtdev; | 439 | struct block_device *ddev, *logdev, *rtdev; |
443 | int flags = 0, error; | 440 | int flags = 0, error; |
444 | 441 | ||
445 | ddev = vfsp->vfs_super->s_bdev; | 442 | ddev = mp->m_super->s_bdev; |
446 | logdev = rtdev = NULL; | 443 | logdev = rtdev = NULL; |
447 | 444 | ||
448 | error = xfs_dmops_get(mp, args); | 445 | error = xfs_dmops_get(mp, args); |
@@ -510,13 +507,13 @@ xfs_mount( | |||
510 | /* | 507 | /* |
511 | * Setup flags based on mount(2) options and then the superblock | 508 | * Setup flags based on mount(2) options and then the superblock |
512 | */ | 509 | */ |
513 | error = xfs_start_flags(vfsp, args, mp); | 510 | error = xfs_start_flags(args, mp); |
514 | if (error) | 511 | if (error) |
515 | goto error1; | 512 | goto error1; |
516 | error = xfs_readsb(mp, flags); | 513 | error = xfs_readsb(mp, flags); |
517 | if (error) | 514 | if (error) |
518 | goto error1; | 515 | goto error1; |
519 | error = xfs_finish_flags(vfsp, args, mp); | 516 | error = xfs_finish_flags(args, mp); |
520 | if (error) | 517 | if (error) |
521 | goto error2; | 518 | goto error2; |
522 | 519 | ||
@@ -547,7 +544,7 @@ xfs_mount( | |||
547 | if ((error = xfs_filestream_mount(mp))) | 544 | if ((error = xfs_filestream_mount(mp))) |
548 | goto error2; | 545 | goto error2; |
549 | 546 | ||
550 | error = XFS_IOINIT(vfsp, args, flags); | 547 | error = XFS_IOINIT(mp, args, flags); |
551 | if (error) | 548 | if (error) |
552 | goto error2; | 549 | goto error2; |
553 | 550 | ||
@@ -577,7 +574,6 @@ xfs_unmount( | |||
577 | int flags, | 574 | int flags, |
578 | cred_t *credp) | 575 | cred_t *credp) |
579 | { | 576 | { |
580 | bhv_vfs_t *vfsp = XFS_MTOVFS(mp); | ||
581 | xfs_inode_t *rip; | 577 | xfs_inode_t *rip; |
582 | bhv_vnode_t *rvp; | 578 | bhv_vnode_t *rvp; |
583 | int unmount_event_wanted = 0; | 579 | int unmount_event_wanted = 0; |
@@ -590,7 +586,7 @@ xfs_unmount( | |||
590 | 586 | ||
591 | #ifdef HAVE_DMAPI | 587 | #ifdef HAVE_DMAPI |
592 | if (mp->m_flags & XFS_MOUNT_DMAPI) { | 588 | if (mp->m_flags & XFS_MOUNT_DMAPI) { |
593 | error = XFS_SEND_PREUNMOUNT(mp, vfsp, | 589 | error = XFS_SEND_PREUNMOUNT(mp, |
594 | rvp, DM_RIGHT_NULL, rvp, DM_RIGHT_NULL, | 590 | rvp, DM_RIGHT_NULL, rvp, DM_RIGHT_NULL, |
595 | NULL, NULL, 0, 0, | 591 | NULL, NULL, 0, 0, |
596 | (mp->m_dmevmask & (1<<DM_EVENT_PREUNMOUNT))? | 592 | (mp->m_dmevmask & (1<<DM_EVENT_PREUNMOUNT))? |
@@ -647,7 +643,7 @@ out: | |||
647 | /* Note: mp structure must still exist for | 643 | /* Note: mp structure must still exist for |
648 | * XFS_SEND_UNMOUNT() call. | 644 | * XFS_SEND_UNMOUNT() call. |
649 | */ | 645 | */ |
650 | XFS_SEND_UNMOUNT(mp, vfsp, error == 0 ? rvp : NULL, | 646 | XFS_SEND_UNMOUNT(mp, error == 0 ? rvp : NULL, |
651 | DM_RIGHT_NULL, 0, error, unmount_event_flags); | 647 | DM_RIGHT_NULL, 0, error, unmount_event_flags); |
652 | } | 648 | } |
653 | if (xfs_unmountfs_needed) { | 649 | if (xfs_unmountfs_needed) { |