aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r--fs/xfs/xfs_vfsops.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index ec85a2e24b52..57ee2bebd248 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -212,7 +212,7 @@ xfs_cleanup(void)
212 */ 212 */
213STATIC int 213STATIC int
214xfs_start_flags( 214xfs_start_flags(
215 struct vfs *vfs, 215 struct bhv_vfs *vfs,
216 struct xfs_mount_args *ap, 216 struct xfs_mount_args *ap,
217 struct xfs_mount *mp) 217 struct xfs_mount *mp)
218{ 218{
@@ -337,7 +337,7 @@ xfs_start_flags(
337 */ 337 */
338STATIC int 338STATIC int
339xfs_finish_flags( 339xfs_finish_flags(
340 struct vfs *vfs, 340 struct bhv_vfs *vfs,
341 struct xfs_mount_args *ap, 341 struct xfs_mount_args *ap,
342 struct xfs_mount *mp) 342 struct xfs_mount *mp)
343{ 343{
@@ -423,7 +423,7 @@ xfs_mount(
423 struct xfs_mount_args *args, 423 struct xfs_mount_args *args,
424 cred_t *credp) 424 cred_t *credp)
425{ 425{
426 struct vfs *vfsp = bhvtovfs(bhvp); 426 struct bhv_vfs *vfsp = bhvtovfs(bhvp);
427 struct bhv_desc *p; 427 struct bhv_desc *p;
428 struct xfs_mount *mp = XFS_BHVTOM(bhvp); 428 struct xfs_mount *mp = XFS_BHVTOM(bhvp);
429 struct block_device *ddev, *logdev, *rtdev; 429 struct block_device *ddev, *logdev, *rtdev;
@@ -552,7 +552,7 @@ xfs_unmount(
552 int flags, 552 int flags,
553 cred_t *credp) 553 cred_t *credp)
554{ 554{
555 struct vfs *vfsp = bhvtovfs(bdp); 555 bhv_vfs_t *vfsp = bhvtovfs(bdp);
556 xfs_mount_t *mp = XFS_BHVTOM(bdp); 556 xfs_mount_t *mp = XFS_BHVTOM(bdp);
557 xfs_inode_t *rip; 557 xfs_inode_t *rip;
558 vnode_t *rvp; 558 vnode_t *rvp;
@@ -665,9 +665,8 @@ xfs_mntupdate(
665 int *flags, 665 int *flags,
666 struct xfs_mount_args *args) 666 struct xfs_mount_args *args)
667{ 667{
668 struct vfs *vfsp = bhvtovfs(bdp); 668 bhv_vfs_t *vfsp = bhvtovfs(bdp);
669 xfs_mount_t *mp = XFS_BHVTOM(bdp); 669 xfs_mount_t *mp = XFS_BHVTOM(bdp);
670 int error;
671 670
672 if (!(*flags & MS_RDONLY)) { /* rw/ro -> rw */ 671 if (!(*flags & MS_RDONLY)) { /* rw/ro -> rw */
673 if (vfsp->vfs_flag & VFS_RDONLY) 672 if (vfsp->vfs_flag & VFS_RDONLY)
@@ -679,7 +678,7 @@ xfs_mntupdate(
679 mp->m_flags &= ~XFS_MOUNT_BARRIER; 678 mp->m_flags &= ~XFS_MOUNT_BARRIER;
680 } 679 }
681 } else if (!(vfsp->vfs_flag & VFS_RDONLY)) { /* rw -> ro */ 680 } else if (!(vfsp->vfs_flag & VFS_RDONLY)) { /* rw -> ro */
682 VFS_SYNC(vfsp, SYNC_FSDATA|SYNC_BDFLUSH|SYNC_ATTR, NULL, error); 681 bhv_vfs_sync(vfsp, SYNC_FSDATA|SYNC_BDFLUSH|SYNC_ATTR, NULL);
683 xfs_quiesce_fs(mp); 682 xfs_quiesce_fs(mp);
684 xfs_log_unmount_write(mp); 683 xfs_log_unmount_write(mp);
685 xfs_unmountfs_writesb(mp); 684 xfs_unmountfs_writesb(mp);
@@ -900,7 +899,7 @@ xfs_sync(
900/* 899/*
901 * xfs sync routine for internal use 900 * xfs sync routine for internal use
902 * 901 *
903 * This routine supports all of the flags defined for the generic VFS_SYNC 902 * This routine supports all of the flags defined for the generic vfs_sync
904 * interface as explained above under xfs_sync. In the interests of not 903 * interface as explained above under xfs_sync. In the interests of not
905 * changing interfaces within the 6.5 family, additional internally- 904 * changing interfaces within the 6.5 family, additional internally-
906 * required functions are specified within a separate xflags parameter, 905 * required functions are specified within a separate xflags parameter,
@@ -1421,7 +1420,7 @@ xfs_sync_inodes(
1421/* 1420/*
1422 * xfs sync routine for internal use 1421 * xfs sync routine for internal use
1423 * 1422 *
1424 * This routine supports all of the flags defined for the generic VFS_SYNC 1423 * This routine supports all of the flags defined for the generic vfs_sync
1425 * interface as explained above under xfs_sync. In the interests of not 1424 * interface as explained above under xfs_sync. In the interests of not
1426 * changing interfaces within the 6.5 family, additional internally- 1425 * changing interfaces within the 6.5 family, additional internally-
1427 * required functions are specified within a separate xflags parameter, 1426 * required functions are specified within a separate xflags parameter,
@@ -1686,7 +1685,7 @@ xfs_parseargs(
1686 struct xfs_mount_args *args, 1685 struct xfs_mount_args *args,
1687 int update) 1686 int update)
1688{ 1687{
1689 struct vfs *vfsp = bhvtovfs(bhv); 1688 bhv_vfs_t *vfsp = bhvtovfs(bhv);
1690 char *this_char, *value, *eov; 1689 char *this_char, *value, *eov;
1691 int dsunit, dswidth, vol_dsunit, vol_dswidth; 1690 int dsunit, dswidth, vol_dsunit, vol_dswidth;
1692 int iosize; 1691 int iosize;
@@ -1924,7 +1923,7 @@ xfs_showargs(
1924 }; 1923 };
1925 struct proc_xfs_info *xfs_infop; 1924 struct proc_xfs_info *xfs_infop;
1926 struct xfs_mount *mp = XFS_BHVTOM(bhv); 1925 struct xfs_mount *mp = XFS_BHVTOM(bhv);
1927 struct vfs *vfsp = XFS_MTOVFS(mp); 1926 struct bhv_vfs *vfsp = XFS_MTOVFS(mp);
1928 1927
1929 for (xfs_infop = xfs_info; xfs_infop->flag; xfs_infop++) { 1928 for (xfs_infop = xfs_info; xfs_infop->flag; xfs_infop++) {
1930 if (mp->m_flags & xfs_infop->flag) 1929 if (mp->m_flags & xfs_infop->flag)
@@ -1984,7 +1983,7 @@ xfs_freeze(
1984} 1983}
1985 1984
1986 1985
1987vfsops_t xfs_vfsops = { 1986bhv_vfsops_t xfs_vfsops = {
1988 BHV_IDENTITY_INIT(VFS_BHV_XFS,VFS_POSITION_XFS), 1987 BHV_IDENTITY_INIT(VFS_BHV_XFS,VFS_POSITION_XFS),
1989 .vfs_parseargs = xfs_parseargs, 1988 .vfs_parseargs = xfs_parseargs,
1990 .vfs_showargs = xfs_showargs, 1989 .vfs_showargs = xfs_showargs,