summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* When processing the KERN_VNODE sysctl, the kernel builds a packed structure,miod2002-06-161-8/+10
| | | | | | | | | | while pstat(8) expects a C structure abiding the regular structure packing rules. This caused pstat -v to break on powerpc. Unbreak the confusion by defining the structure in a common header file, and having the kernel use it. ok millert@ deraadt@
* Use ltsleep in vfs_busy.art2002-06-081-6/+2
|
* sprinkle some splassert(IPL_BIO) in some functions that are commented as "should be called at splbio()"art2002-05-161-1/+13
|
* First round of __P removal in sysmillert2002-03-141-13/+13
|
* Cleanup mountroot-related definitions.miod2002-02-041-2/+1
|
* Pool deals fairly well with physical memory shortage, but it doesn't dealart2002-01-231-2/+2
| | | | | | | | | | | | | | | | | | well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
* UBC was a disaster. It worked very good when it worked, but on someart2001-12-191-104/+46
| | | | | | | | | machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
* No need to initialize the uobj on every getnewvnode. Just doart2001-12-101-13/+11
| | | | it when allocating. Add some improved diagnostics.
* Big cleanup inspired by NetBSD with some parts of the code from NetBSD.art2001-12-101-2/+1
| | | | | | | | - get rid of VOP_BALLOCN and VOP_SIZE - move the generic getpages and putpages into miscfs/genfs - create a genfs_node which must be added to the top of the private portion of each vnode for filsystems that want to use genfs_{get,put}pages - rename genfs_mmap to vop_generic_mmap
* Merge in struct uvm_vnode into struct vnode.art2001-12-101-14/+14
|
* Break out the part that lowers v_holdcnt in brelvp into an own functionart2001-12-051-26/+33
| | | | and make it and vhold into public interfaces.
* Ooops. Revert part of the last commit that was completly wrong and wasn't supposed to be committed.art2001-11-291-5/+5
|
* Correctly handle b_vp with bgetvp and brelvp in {get,put}pages.art2001-11-291-5/+5
| | | | Prevents panics caused by vnodes being recycled under our feet.
* Merge in the unified buffer cache code as found in NetBSD 2001/03/10. Theart2001-11-271-17/+71
| | | | | | | code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups.
* Added vfs_isbusy. Useful for verifying that a mount point is lockedcsapuntz2001-11-211-63/+103
| | | | | | | Added vfs_mount_foreach_vnode. Several places in the code seem to want to traverse the mount list and they all seem to handle locking differently. Centralize traversing the mount list in one place so that we only need to get the locking right once.
* Don't zero v_bioflag when recycling a vnode in getnewvnode.art2001-11-151-2/+1
| | | | | | Sometimes the vnode can be on the syncers list. While that is a bug, it's just a minor annoyance. A vnode on a syncer worklist without VBIOONSYNCLIST set is a disaster.
* Remove unnecessary check for NULL vnode in reassignbuf.art2001-11-121-6/+2
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-4/+2
| | | | (Look ma, I might have broken the tree)
* Bounds check index into routing table. Thanks to Ken Ashcraft of Stanfordcsapuntz2001-10-021-1/+5
| | | | for finding this bug.
* Get rid of B_VFLUSH. Not relevant after the end of the AGE queue.csapuntz2001-09-191-3/+5
|
* Add some missing lengths checks when passing data from userland tomillert2001-09-161-1/+3
| | | | kernel. From based on NetBSD patches.
* (vput): make panic strings actually say vput instead of vreleassar2001-08-021-5/+5
|
* Typo.miod2001-07-261-2/+2
|
* remove old vmart2001-06-271-16/+1
|
* KNFderaadt2001-06-221-64/+58
|
* send note_revoke to knotes when vnode goes away, okay art@provos2001-06-051-1/+7
|
* indentation nit.art2001-05-161-2/+1
|
* cleanup, remove incorrect commentart2001-04-291-9/+3
|
* Use pool for allocating vnodes.art2001-03-221-3/+7
| | | | | Even though vnodes are never freed (could be) this gives us big memory and kmem_map savings.
* uvm_vnp_terminate expect the vnode to be locked.art2001-03-211-7/+7
| | | | Why didn't LOCKDEBUG catch this?
* Oops. fix thinko in last.art2001-03-161-2/+2
|
* Use CIRCLEQ macros for mountlist.art2001-03-161-9/+11
|
* Initialize the mountlist_slock.art2001-03-161-1/+2
|
* Move v_writecount test back to it original placecsapuntz2001-02-261-6/+18
|
* Make ref counts 32-bit unsigned ints as opposed to a potpourri of longs andcsapuntz2001-02-261-22/+22
| | | | ints.
* Cleanup of vnode interface continues. Get rid of VHOLD/HOLDRELE.csapuntz2001-02-241-93/+152
| | | | | | | | | | | | Change VM/UVM to use buf_replacevnode to change the vnode associated with a buffer. Addition v_bioflag for flags written in interrupt handlers (and read at splbio, though not strictly necessary) Add vwaitforio and use it instead of a while loop of v_numoutput. Fix race conditions when manipulation vnode free list
* Remove the clustering fields from the vnodes and place them in thecsapuntz2001-02-231-9/+2
| | | | file system inode instead
* Latest soft updates from FreeBSD/Kirk McKusickcsapuntz2001-02-211-1/+15
| | | | Snapshot-related code has been commented out.
* do not print stuff when not verbosemickey2001-02-081-2/+3
|
* Minimal optimization.art2000-09-271-3/+5
|
* Don't wait for B_READ buffers on shutdown.art2000-07-171-2/+2
| | | | From NetBSD.
* Use CIRCLEQ_FOREACHcsapuntz2000-04-251-3/+2
|
* see if there is any meaning under curproc before using &proc0 in vfs_syncwait(); from art@mickey2000-04-211-2/+4
|
* With soft updates, some buffers will be remarked as dirty after being written.art1999-12-051-8/+27
| | | | | Handle this when syncing filesystems when unmounting. From NetBSD.
* Use VONSYNCLIST to see if we should remove a vnode from the sync list insteadart1999-12-051-10/+12
| | | | of looking at v_dirtyblkhd.
* more paranoid check of the refcount in vfs_registerart1999-08-201-2/+2
|
* From NetBSD; vdevgone, used for revoking access to device nodes when theyniklas1999-08-081-1/+18
| | | | disappear (detach is coming).
* New struct statfs with mount options. NOTE: this replaces statfs(2),millert1999-05-311-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fstatfs(2), and getfsstat(2) so you will need to build a new kernel before doing a "make build" or you will get "unimplemented syscall" errors. The new struct statfs has the following featuires: o Has a u_int32_t flags field--now softdep can have a real flag. o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man page used to lie about setting invalid/unused fields to -1. SunOS does that but our code never has. o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9 and having it there but always 0 is confusing. It is conceivable that this may cause some old code to not compile but that is better than silently breaking. o Adds a mount_info union that contains the FSTYPE_args struct. This means that "mount" can now tell you all the options a filesystem was mounted with. This is especially nice for NFS. Other changes: o The linux statfs emulation didn't convert between BSD fs names and linux f_type numbers. Now it does, since the BSD f_type number is useless to linux apps (and has been removed anyway) o FreeBSD's struct statfs is different from our (both old and new) and thus needs conversion. Previously, the OpenBSD syscalls were used without any real translation. o mount(8) will now show extra info when invoked with no arguments. However, to see *everything* you need to use the -v (verbose) flag.
* factor out sync+wait code into vfa_syncwait() routine formickey1999-05-061-15/+28
| | | | | applications in system like power management and such. art@ finally said `commit it'
* in vput, simple_unlock the v_interlock before VOP_INACTIVE, not afterart1999-04-301-3/+3
|