summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs/msdosfs_denode.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused "struct proc *" argument from the following functions:mpi2020-02-271-3/+2
| | | | | | | | | | | | | - ufs_chown() & ufs_chmod() - ufs_reclaim() - ext2fs_chown() & ext2fs_chmod() - ntfs_ntget() & ntfs_ntput() - ntfs_vgetex(), ntfs_ntlookup() & ntfs_ntlookupfile() While here use `ap->a_p' directly when it is only required to re-enter the VFS layer in order to help reducing the loop. ok visa@
* struct vops is not modified during runtime so use const which moves eachclaudio2020-01-201-2/+2
| | | | | into read-only data segment. OK deraadt@ tedu@
* vinvalbuf(9): tlseep -> tsleep_nsec(9); ok millert@cheloha2019-07-251-2/+2
|
* Drop unnecessary `p' parameter from vget(9).visa2018-05-271-3/+2
| | | | OK mpi@
* Remove proc from the parameters of vn_lock(). The parameter isvisa2018-05-021-3/+2
| | | | | | unnecessary because curproc always does the locking. OK mpi@
* Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysvisa2018-04-281-2/+2
| | | | | | | curproc that does the locking or unlocking, so the proc parameter is pointless and can be dropped. OK mpi@, deraadt@
* Use RWL_IS_VNODE with locks that are acquired through VOP_LOCK(),visa2018-03-281-2/+2
| | | | | | | | to appease WITNESS. ext2fs and ffs already use the flag. The same locking pattern appears with other file systems too, so this patch addresses the remaining cases. OK mpi@
* msdofs: Add new CLUST_END constantsf2017-08-141-2/+2
| | | | | | | | | | | | | Add new CLUST_END and use it as parameter to pcbmap() when searching for end cluster, instead of explicitly passing 0xffff. This fixes potential problem for FAT32, where cluster number may be legally bigger than 0xffff. Also change clusteralloc() so that fillwith is not explicitly passed by caller anymore (there is no need to use anything other than CLUST_EOFE). From NetBSD commit by jdolecek@NetBSD.org ok tb@ mpi@
* Tweak lock inits to make the system runnable with witness(4)visa2017-04-201-2/+2
| | | | on amd64 and i386.
* Remove the lockmgr() API. It is only used by filesystems, where it is anatano2016-06-191-2/+2
| | | | | | | | trivial change to use rrw locks instead. All it needs is LK_* defines for the RW_* flags. tested by naddy and sthen on package building infrastructure input and ok jmc mpi tedu
* Remove the unused flags argument from VOP_UNLOCK().natano2016-03-191-2/+2
| | | | | | torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
* Fix printf() types so kernel compiles with or w/o MSDOSFS_DEBUG.krw2015-10-231-7/+8
| | | | | e.g. print pointers with %p instead of %08x. No changes outside of MSDOSFS_DEBUG.
* Nuke a bunch of leading/embedded/trailing whitespace so the code can bekrw2015-10-231-19/+19
| | | | read without generating spurious headaches.
* rename desiredvnodes to initialvnodes. less of a lie. ok beck deraadttedu2015-01-091-2/+2
|
* primary change: move uvm_vnode out of vnode, keeping only a pointer.tedu2014-12-161-1/+2
| | | | | | objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and help from deraadt
* use siphash for key lookups in all the filesystem hashes.dlg2014-11-181-3/+21
| | | | ok deraadt@ tedu@
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt2014-07-081-3/+1
| | | | | don't need to be married. ok guenther miod beck jsing kettenis
* fix error checking oddity in msdosfs code, as noted by kettenis@halex2013-12-241-2/+2
| | | | ok mikeb@ espie@
* Format string fixes: %hu/%hd for uint16_t, %u/%d/%x for uint32_tsf2013-10-011-2/+2
| | | | | - despite the name, ntohl returns uint32_t, not long - also fix some %d into %u
* final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt2013-06-111-2/+2
| | | | | test period; i think 3 years ago the last bugs fell out. ok otto beck others
* Remove the need to occasionally treat dos file names as strings bykrw2012-09-061-6/+8
| | | | | | | | | | | using "%.11s" to print them out. Make all dos file names 11 byte arrays and nuke the attempt to put '\0' at the 12th position of such an array. Fixes 'panic: smashed stack in msdosfs_rename.c' reported by MERHIGI Marcus via tech@. Tested by MERHIGI Marcus. Suggestions and ok tedu@.
* bread does nothing with its ucred argument. remove it. ok matthewtedu2011-07-041-5/+3
|
* Bring back the "End the VOP experiment." diff, naddy's issues wherethib2010-12-211-4/+3
| | | | | | unrelated, and his alpha is much happier now. OK deraadt@
* improve the look of a for loopderaadt2010-10-271-2/+2
|
* Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)thib2010-09-101-3/+4
| | | | have been resolved.
* End the VOP experiment. Instead of the ridicolusly complicated operationthib2010-09-061-4/+3
| | | | | | | | | | | | | | | | | | | vector setup that has questionable features (that have, as far as I can tell never been used in practice, atleast not in OpenBSD), remove all the gunk and favor a simple struct full of function pointers that get set directly by each of the filesystems. Removes gobs of ugly code and makes things simpler by a magnitude. The only downside of this is that we loose the vnoperate feature so the spec/fifo operations of the filesystems need to be kept in sync with specfs and fifofs, this is no big deal as the API it self is pretty static. Many thanks to armani@ who pulled an earlier version of this diff to current after c2k10 and Gabriel Kihlman on tech@ for testing. Liked by many. "come on, find your balls" deraadt@.
* Initialize various uninitialized variables. Found by jsg@ via Clang.krw2010-03-291-2/+2
| | | | | | Feedback from miod@ and kettenis@. ok beck@
* - ansify function declarations, no binary changejasper2009-08-131-35/+14
| | | | "fine" thib@
* Remove the VREF() macro and replaces all instances with a call to verf(),thib2009-07-091-3/+3
| | | | | | | | | | | which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
* Return pcbmap() errors from deget() rather than ignoring them. EIO atkrw2008-01-131-2/+4
| | | | | | | least has been seen from ian@'s new iPod, causing inappropriate mounting. ok miod@
* Oops. Forgot to do FREE -> free when I did MALLOC -> malloc.krw2007-10-061-2/+2
|
* MALLOC+bzero -> malloc+M_ZERO.krw2007-10-031-4/+2
| | | | | | | | In ip_esp.c all allocated memory is now zero'd in the "malloc(sizeof(*tc) + alen ..." case. The +alen memory was not initialized by the bzero() call. Noticed by chl@. "Looks good" art@ "seems ok" chl@
* convert all daddr_t types to either daddr64_t or uint32_t or other suchderaadt2007-06-021-2/+2
| | | | things based on their use. ok with fixes from tom, tested by grange too
* pedro ok'd this ~3500 line diff which removes the vop argumentderaadt2007-06-011-8/+3
| | | | | "ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
* Remove the simplelock argument from vrecycle();thib2007-04-111-2/+2
| | | | ok pedro@, sturm@
* Remove the v_interlock simplelock from the vnode structure.thib2007-03-211-3/+2
| | | | | | | | | 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@
* Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.pedro2006-01-091-6/+11
| | | | Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-2/+2
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* use pool for namei pathbuf. testing ok millert@ tdeval@tedu2004-05-141-1/+1
|
* 32 bit ints are uint32_t, not u_long. works on 64bit now. ok deraadt@tedu2004-05-121-13/+13
|
* First round of __P removal in sysmillert2002-03-141-5/+5
|
* UBC was a disaster. It worked very good when it worked, but on someart2001-12-191-26/+6
| | | | | | | | | 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.
* Big cleanup inspired by NetBSD with some parts of the code from NetBSD.art2001-12-101-1/+14
| | | | | | | | - 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-2/+2
|
* Merge in the unified buffer cache code as found in NetBSD 2001/03/10. Theart2001-11-271-6/+13
| | | | | | | 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.
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* Remove old vm.art2001-06-271-9/+1
|
* Get rid of several vnode operationscsapuntz2001-06-231-2/+24
|