diff options
author | alex <alex@FreeBSD.org> | 1998-07-27 22:47:17 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1998-07-27 22:47:17 +0000 |
commit | d48cc1feee74cb54981aa3a39ff1cdf0603395b6 (patch) | |
tree | 1f782974d3be56f98a273d4aae5e26de6ddcf0de /sys/fs | |
parent | eb97908cb74e4ad6501f55030258ea26fd61f3e3 (diff) | |
download | FreeBSD-src-d48cc1feee74cb54981aa3a39ff1cdf0603395b6.zip FreeBSD-src-d48cc1feee74cb54981aa3a39ff1cdf0603395b6.tar.gz |
Style fixes and a bug fix: don't remove the exit handler if unmount
fails.
Submitted by: bde
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/procfs/procfs_vfsops.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/fs/procfs/procfs_vfsops.c b/sys/fs/procfs/procfs_vfsops.c index b84ae7f..ef4c4da 100644 --- a/sys/fs/procfs/procfs_vfsops.c +++ b/sys/fs/procfs/procfs_vfsops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vfsops.c 8.7 (Berkeley) 5/10/95 * - * $Id: procfs_vfsops.c,v 1.23 1998/07/25 15:52:44 alex Exp $ + * $Id: procfs_vfsops.c,v 1.24 1998/07/27 01:07:01 alex Exp $ */ /* @@ -87,7 +87,7 @@ procfs_mount(mp, path, data, ndp, p) return (EOPNOTSUPP); if (mp->mnt_vfc->vfc_refcount == 1 && (error = at_exit(procfs_exit))) { - printf("procfs: cannot register procfs_exit with at_exit -- error %d\n", error); + printf("procfs: cannot register procfs_exit with at_exit\n"); return(error); } @@ -118,9 +118,6 @@ procfs_unmount(mp, mntflags, p) int error; int flags = 0; - if (mp->mnt_vfc->vfc_refcount == 1) - rm_at_exit(procfs_exit); - if (mntflags & MNT_FORCE) flags |= FORCECLOSE; @@ -128,6 +125,9 @@ procfs_unmount(mp, mntflags, p) if (error) return (error); + if (mp->mnt_vfc->vfc_refcount == 1) + rm_at_exit(procfs_exit); + return (0); } @@ -182,6 +182,7 @@ static int procfs_init(vfsp) struct vfsconf *vfsp; { + return (0); } |