vfs_export.c (39df86086fbadd0ab8955fc13331ed4f940a244d) | vfs_export.c (7eb9fca557a7666b6be50b3f7b315ea1e0560530) |
---|---|
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. --- 1221 unchanged lines hidden (view full) --- 1230 listheadp = &newvp->v_dirtyblkhd; 1231 if ((newvp->v_flag & VONWORKLST) == 0) { 1232 switch (newvp->v_type) { 1233 case VDIR: 1234 delay = dirdelay; 1235 break; 1236 case VCHR: 1237 case VBLK: | 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. --- 1221 unchanged lines hidden (view full) --- 1230 listheadp = &newvp->v_dirtyblkhd; 1231 if ((newvp->v_flag & VONWORKLST) == 0) { 1232 switch (newvp->v_type) { 1233 case VDIR: 1234 delay = dirdelay; 1235 break; 1236 case VCHR: 1237 case VBLK: |
1238 if (newvp->v_specmountpoint != NULL) { | 1238 if (newvp->v_rdev->si_mountpoint != NULL) { |
1239 delay = metadelay; 1240 break; 1241 } 1242 /* fall through */ 1243 default: 1244 delay = filedelay; 1245 } 1246 vn_syncer_add_to_worklist(newvp, delay); --- 999 unchanged lines hidden (view full) --- 2246/* 2247 * Check to see if a filesystem is mounted on a block device. 2248 */ 2249int 2250vfs_mountedon(vp) 2251 struct vnode *vp; 2252{ 2253 | 1239 delay = metadelay; 1240 break; 1241 } 1242 /* fall through */ 1243 default: 1244 delay = filedelay; 1245 } 1246 vn_syncer_add_to_worklist(newvp, delay); --- 999 unchanged lines hidden (view full) --- 2246/* 2247 * Check to see if a filesystem is mounted on a block device. 2248 */ 2249int 2250vfs_mountedon(vp) 2251 struct vnode *vp; 2252{ 2253 |
2254 if (vp->v_specmountpoint != NULL) | 2254 if (vp->v_rdev->si_mountpoint != NULL) |
2255 return (EBUSY); 2256 return (0); 2257} 2258 2259/* 2260 * Unmount all filesystems. The list is traversed in reverse order 2261 * of mounting to avoid dependencies. 2262 */ --- 867 unchanged lines hidden --- | 2255 return (EBUSY); 2256 return (0); 2257} 2258 2259/* 2260 * Unmount all filesystems. The list is traversed in reverse order 2261 * of mounting to avoid dependencies. 2262 */ --- 867 unchanged lines hidden --- |