summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
AgeCommit message (Collapse)Author
2001-06-22KNFTheo de Raadt
2001-06-05send note_revoke to knotes when vnode goes away, okay art@Niels Provos
2001-05-16indentation nit.Artur Grabowski
2001-04-29cleanup, remove incorrect commentArtur Grabowski
2001-03-22Use pool for allocating vnodes.Artur Grabowski
Even though vnodes are never freed (could be) this gives us big memory and kmem_map savings.
2001-03-21uvm_vnp_terminate expect the vnode to be locked.Artur Grabowski
Why didn't LOCKDEBUG catch this?
2001-03-16Oops. fix thinko in last.Artur Grabowski
2001-03-16Use CIRCLEQ macros for mountlist.Artur Grabowski
2001-03-16Initialize the mountlist_slock.Artur Grabowski
2001-02-26Move v_writecount test back to it original placeConstantine Sapuntzakis
2001-02-26Make ref counts 32-bit unsigned ints as opposed to a potpourri of longs andConstantine Sapuntzakis
ints.
2001-02-24Cleanup of vnode interface continues. Get rid of VHOLD/HOLDRELE.Constantine Sapuntzakis
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
2001-02-23Remove the clustering fields from the vnodes and place them in theConstantine Sapuntzakis
file system inode instead
2001-02-21Latest soft updates from FreeBSD/Kirk McKusickConstantine Sapuntzakis
Snapshot-related code has been commented out.
2001-02-08do not print stuff when not verboseMichael Shalayeff
2000-09-27Minimal optimization.Artur Grabowski
2000-07-17Don't wait for B_READ buffers on shutdown.Artur Grabowski
From NetBSD.
2000-04-25Use CIRCLEQ_FOREACHConstantine Sapuntzakis
2000-04-21see if there is any meaning under curproc before using &proc0 in ↵Michael Shalayeff
vfs_syncwait(); from art@
1999-12-05With soft updates, some buffers will be remarked as dirty after being written.Artur Grabowski
Handle this when syncing filesystems when unmounting. From NetBSD.
1999-12-05Use VONSYNCLIST to see if we should remove a vnode from the sync list insteadArtur Grabowski
of looking at v_dirtyblkhd.
1999-08-20more paranoid check of the refcount in vfs_registerArtur Grabowski
1999-08-08From NetBSD; vdevgone, used for revoking access to device nodes when theyNiklas Hallqvist
disappear (detach is coming).
1999-05-31New struct statfs with mount options. NOTE: this replaces statfs(2),Todd C. Miller
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.
1999-05-06factor out sync+wait code into vfa_syncwait() routine forMichael Shalayeff
applications in system like power management and such. art@ finally said `commit it'
1999-04-30in vput, simple_unlock the v_interlock before VOP_INACTIVE, not afterArtur Grabowski
1999-03-11backoutTheo de Raadt
1999-03-11back out unapproved changesTheo de Raadt
1999-03-11indentMichael Shalayeff
1999-03-11factor sync+wait operation out into a separate function.Michael Shalayeff
1999-02-26adapt to uvm vnode pagerArtur Grabowski
1999-02-19add vfs_register and vfs_unregister functionsArtur Grabowski
1998-12-28simple_lock fixesArtur Grabowski
1998-12-22deconfuse vprint, print holdcount, not refcount when we are talking about ↵Artur Grabowski
holdcnt
1998-12-10vfs_unmountall: retry to unmount all remaining filesystems when one unmount ↵Artur Grabowski
failed
1998-12-05Framework for generating automatic test code for locking disciplineConstantine Sapuntzakis
in DIAGNOSTIC mode. Added documentation to vfs_subr.c on locking needs of a couple calls. Improvements to the vinvalbuf patch. We need to start over after we let our pants down.
1998-12-04VFS-Lite2 requires stricter locking around vnode buffer queues. vinvalbufConstantine Sapuntzakis
had insufficient protection
1998-11-20vn_lock already unlocks the simple lock. don't do that againArtur Grabowski
1998-11-12Integrate latest soft updates patches for McKusick.Constantine Sapuntzakis
Integrate cleaner ffs mount code from FreeBSD. Most notably, this mount code prevents you from mounting an unclean file system read-write.
1998-10-13In vrele, vget, reinstate to following orderConstantine Sapuntzakis
- VNODE gets placed on free list - VOP_INACTIVE is called This was the original order. It was changed in an earlier patch due to a race condition in non-locking FSes (like NFS) between getnewvnode and inactive. However, the modified order had its own race conditions, so it turned out not to be a good choice.
1998-08-30Cleanup.Constantine Sapuntzakis
Error diagnostics in vputonfreelist to catch violations of assumptions.
1998-08-06Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockConstantine Sapuntzakis
to be vop_generic_revoke, vop_generic_bwrite, vop_generic_islocked, vop_generic_lock and vop_generic_unlock. Create vop_generic_abortop and propogate change to all file systems. Fix PR/371. Get rid of locking in NULLFS (should be mostly unnecessary now except for forced unmounts).
1998-04-25typoNiklas Hallqvist
1998-02-20typoNiklas Hallqvist
1998-01-11Fix a couple spinlock references. More code motion in vfs_subr.cConstantine Sapuntzakis
1998-01-10Broke up vfs_subr.c which was getting a bit huge. We now have seperate filesConstantine Sapuntzakis
for the syncer daemon as well as default VOP_*.
1997-11-24Fix non-DIAGNOSTIC (and non-COMPAT*) compilationNiklas Hallqvist
1997-11-07Fixed hang on shutdownConstantine Sapuntzakis
Disabled vop_nolock for now. Filesystems still need to be cleaned up.
1997-11-06DEBUG now compilesConstantine Sapuntzakis
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis