summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
AgeCommit message (Collapse)Author
2007-03-21Remove the v_interlock simplelock from the vnode structure.Thordur I. Bjornsson
Zap all calls to simple_lock/unlock() on it (those calls are #defined away though). Remove the LK_INTERLOCK from the calls to vn_lock() and cleanup the filesystems wich implement VOP_LOCK(). (by remvoing the v_interlock from there calls to lockmgr()). ok pedro@, art@, tedu@
2007-03-12better desiredvnodes not based on maxusers; pedro@ deraadt@ okMichael Shalayeff
2007-02-20for vfsconf sysctl, do not leak kernel sensors out to userlandTheo de Raadt
ok art thib
2007-02-17fix ddb buf printing for daddr_t growth to 64bit;Michael Shalayeff
from juan hernandez gonzalez; tested by bluhm@
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-02-13fix ddb buf printMichael Shalayeff
2006-11-20vprint() should be defined if DIAGNOSTIC || DEBUG. Noticed by (andTom Cosgrove
original diff from) Jake < antipsychic (at) hotmail.com >. Discussed with Mickey and Miod. ok miod@ pedro@
2006-10-30use vp->v_type to index into vtypes rather then vp->v_tag,Thordur I. Bjornsson
fixing odd output in the 'show vnode' ddb code. ok mickey@
2006-07-11add mount/vnode/buf and softdep printing commands; tested on a few archs and ↵Michael Shalayeff
will make pedro happy too (;
2006-07-09Fix tab where space was meantPedro Martelletto
2006-07-08vinvalbuf() debugging aid, under VFSDEBUG.Thordur I. Bjornsson
ok pedro@
2006-07-03also print vp in vprint (useful for debugging); pedro@ okMichael Shalayeff
2006-06-25rename vfs_busy() flags VB_UMIGNORE/VB_UMWAIT to VB_NOWAIT/VB_WAITNikolay Sturm
requested by and ok pedro
2006-06-14move vfs_busy() to rwlocks and properly hide the locking api from vfsNikolay Sturm
ok tedu, pedro
2006-06-02Add a clonable devices implementation. Hacked along with thib@, inputPedro Martelletto
from krw@ and toby@, subliminal prodding from dlg@, okay deraadt@.
2006-05-28Spacing in vfs_sysctl()Pedro Martelletto
2006-05-07forgot to remove this sentence from the commentNikolay Sturm
ok pedro
2006-04-30remove the simplelock argument from vfs_busy() which is currently notNikolay Sturm
used and will never be used this way in VFS requested by and ok pedro, ok krw, biorn
2006-04-19Remove unused mount list simple_lock() gooPedro Martelletto
2006-01-09Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.Pedro Martelletto
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
2005-11-30No need for vfs_busy() and vfs_unbusy() to take a process pointerPedro Martelletto
anymore. Testing by jolan@, thanks.
2005-11-24Remove kernfs, okay deraadt@.Pedro Martelletto
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-11-18Work around yet another race on non-locking file systems: when callingPedro Martelletto
VOP_INACTIVE() in vrele() and vput(), we may sleep. Since there's no locking of any kind, someone can vget() the vnode and vrele() it while we sleep, beating us in getting the vnode on the free list.
2005-11-08Missed one use of 'register'Pedro Martelletto
2005-11-07Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-10-19Remove v_vnlock from struct vnode, okay krw@ tedu@Pedro Martelletto
2005-05-26RIP stackable filesystems, ok marius@ tedu@, discussed with deraadt@Pedro Martelletto
2005-05-24when a device vnode associated with a mount point disappears, mark thePedro Martelletto
filesystem as doomed and unmount it
2005-05-22put VLOCKSWORK stuff under a single option, VFSDEBUGPedro Martelletto
2005-05-01check for VBIOONFREELIST and VBIOONSYNCLIST in vprint(), okay marius@Pedro Martelletto
2005-03-24always good to check for invalid values. ok marius pedroTed Unangst
2005-01-10change vget() to only put a vnode back on the free lists if it actuallyPedro Martelletto
was there. should fix a (rare) corner case introduced by my last commit. ok tedu@, testing by joris, moritz@, danh@, otto@ and krw@. many thanks.
2004-12-31sprinkle some more list macros in herePedro Martelletto
2004-12-31when releasing a vnode, make it inactive before sticking it to one ofPedro Martelletto
the free lists. should fix some races on filesystems that don't have locks, such as nfs. also, it allows for a more straightforward way of releasing vnodes (nodes that are going to be recycled don't have to be moved to the head of the list). tested by many, thanks. ok tedu@ deraadt@
2004-12-28clean dirty accident by miodTheo de Raadt
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-12-09minor spacing/styling nitsPedro Martelletto
2004-08-04Uninline vputonfreelist.Artur Grabowski
2004-08-04better commentsPedro Martelletto
2004-08-02- check for LK_NOWAIT on vget()Pedro Martelletto
- use ltsleep() instead of the unlock + sleep combo ok art@, inspiration from free/net
2004-05-27make acct(2) optional with ACCOUNTINGTed Unangst
ok art@ deraadt@
2004-05-27shutdown accounting before shutting down vfs. should prevent some panics.Ted Unangst
ok david@ millert@ (iirc)
2004-04-25radix tree with multipath support. from kame. deraadt okJun-ichiro itojun Hagino
user visible changes: - you can add multiple routes with same key (route add A B then route add A C) - you have to specify gateway address if there are multiple entries on the table (route delete A B, instead of route delete A) kernel change: - radix_node_head has an extra entry - rnh_deladdr takes extra argument TODO: - actually take advantage of multipath (rtalloc -> rtalloc_mpath)
2004-01-09back out vnode parents. weird breakge found in ports treeTed Unangst
2004-01-06keep track of a vnode's parent dir. ufs only, and unused atm, butTed Unangst
the fun stuff is coming. testing by brad.
2003-07-21remove caddr_t casts. it's just silly to cast something when the functionTed Unangst
takes a void *. convert uiomove to take a void * as well. ok deraadt@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-13Back out previous change that causes "vnode table full" for large-scaleChristian Weisgerber
file operations.
2003-05-13do reclaim LAYER vnodes, no good reason not toTed Unangst