msdosfs_denode.c (7161) | msdosfs_denode.c (7755) |
---|---|
1/* $Id: msdosfs_denode.c,v 1.9 1995/03/16 18:14:18 bde Exp $ */ | 1/* $Id: msdosfs_denode.c,v 1.10 1995/03/19 12:11:13 davidg Exp $ */ |
2/* $NetBSD: msdosfs_denode.c,v 1.9 1994/08/21 18:44:00 ws Exp $ */ 3 4/*- 5 * Copyright (C) 1994 Wolfgang Solfrank. 6 * Copyright (C) 1994 TooLs GmbH. 7 * All rights reserved. 8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below). 9 * --- 104 unchanged lines hidden (view full) --- 114 115 depp = &dehashtbl[DEHASH(dep->de_dev, dep->de_dirclust + dep->de_diroffset)]; 116 deq = *depp; 117 if (deq) 118 deq->de_prev = &dep->de_next; 119 dep->de_next = deq; 120 dep->de_prev = depp; 121 *depp = dep; | 2/* $NetBSD: msdosfs_denode.c,v 1.9 1994/08/21 18:44:00 ws Exp $ */ 3 4/*- 5 * Copyright (C) 1994 Wolfgang Solfrank. 6 * Copyright (C) 1994 TooLs GmbH. 7 * All rights reserved. 8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below). 9 * --- 104 unchanged lines hidden (view full) --- 114 115 depp = &dehashtbl[DEHASH(dep->de_dev, dep->de_dirclust + dep->de_diroffset)]; 116 deq = *depp; 117 if (deq) 118 deq->de_prev = &dep->de_next; 119 dep->de_next = deq; 120 dep->de_prev = depp; 121 *depp = dep; |
122 if (dep->de_flag & DE_LOCKED) 123 panic("msdosfs_hashins: already locked"); 124 if (curproc) 125 dep->de_lockholder = curproc->p_pid; 126 else 127 dep->de_lockholder = -1; 128 dep->de_flag |= DE_LOCKED; | |
129} 130 131static void 132msdosfs_hashrem(dep) 133 struct denode *dep; 134{ 135 struct denode *deq; 136 deq = dep->de_next; --- 93 unchanged lines hidden (view full) --- 230 ldep->de_diroffset = diroffset; 231 fc_purge(ldep, 0); /* init the fat cache for this denode */ 232 233 /* 234 * Insert the denode into the hash queue and lock the denode so it 235 * can't be accessed until we've read it in and have done what we 236 * need to it. 237 */ | 122} 123 124static void 125msdosfs_hashrem(dep) 126 struct denode *dep; 127{ 128 struct denode *deq; 129 deq = dep->de_next; --- 93 unchanged lines hidden (view full) --- 223 ldep->de_diroffset = diroffset; 224 fc_purge(ldep, 0); /* init the fat cache for this denode */ 225 226 /* 227 * Insert the denode into the hash queue and lock the denode so it 228 * can't be accessed until we've read it in and have done what we 229 * need to it. 230 */ |
231 VOP_LOCK(nvp); |
|
238 msdosfs_hashins(ldep); 239 240 /* 241 * Copy the directory entry into the denode area of the vnode. 242 */ 243 if (dirclust == MSDOSFSROOT && diroffset == MSDOSFSROOT_OFS) { 244 /* 245 * Directory entry for the root directory. There isn't one, --- 462 unchanged lines hidden --- | 232 msdosfs_hashins(ldep); 233 234 /* 235 * Copy the directory entry into the denode area of the vnode. 236 */ 237 if (dirclust == MSDOSFSROOT && diroffset == MSDOSFSROOT_OFS) { 238 /* 239 * Directory entry for the root directory. There isn't one, --- 462 unchanged lines hidden --- |