vfs_mount.c (f257b7a54b4fe77840cf694314bdc401e00c31a1) vfs_mount.c (65a311fcb2f44fce7eb05160d3198cefed5c27f9)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 785 unchanged lines hidden (view full) ---

794 }
795 lf->userrefs++;
796 /* Look up again to see if the VFS was loaded. */
797 for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next)
798 if (strcmp(vfsp->vfc_name, fstype) == 0)
799 break;
800 if (vfsp == NULL) {
801 lf->userrefs--;
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 785 unchanged lines hidden (view full) ---

794 }
795 lf->userrefs++;
796 /* Look up again to see if the VFS was loaded. */
797 for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next)
798 if (strcmp(vfsp->vfc_name, fstype) == 0)
799 break;
800 if (vfsp == NULL) {
801 lf->userrefs--;
802 linker_file_unload(lf);
802 linker_file_unload(lf, LINKER_UNLOAD_FORCE);
803 vput(vp);
804 return (ENODEV);
805 }
806 }
807 VI_LOCK(vp);
808 if ((vp->v_iflag & VI_MOUNT) != 0 ||
809 vp->v_mountedhere != NULL) {
810 VI_UNLOCK(vp);

--- 804 unchanged lines hidden ---
803 vput(vp);
804 return (ENODEV);
805 }
806 }
807 VI_LOCK(vp);
808 if ((vp->v_iflag & VI_MOUNT) != 0 ||
809 vp->v_mountedhere != NULL) {
810 VI_UNLOCK(vp);

--- 804 unchanged lines hidden ---