summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_vnops.c
AgeCommit message (Expand)Author
2021-11-13Let filt_fileattach() run without the kernel lockVisa Hankala
2021-10-25Revert commitid: ufM9BcSbXqfLpzBH;Claudio Jeker
2021-10-21Move vfs_stall_barrier() from the fd layer into vn_lock() and the vfs layer.Claudio Jeker
2021-05-06Unlock lseek(2).anton
2021-04-28Introduce a global vnode_mtx and use it to make vn_lock() safe to be calledClaudio Jeker
2020-04-08Make fifo_kqfilter() honor FREAD|FWRITE just like fifo_poll() does.Martin Pieuchot
2020-02-22In preparation for unlocking ioctl(2), grab the kernel lock as needed.anton
2020-02-16Rework vn_ioctl() to only have a single point of return. This will makeanton
2020-01-05Constify instances of struct fileops.Visa Hankala
2019-12-08Convert infinite sleeps to tsleep_nsec(9).Martin Pieuchot
2019-11-10Change the EINVAL return code to a KASSERT if the namei structure isBob Beck
2019-10-06Fix vn_open to require an op of 0, and 0 or KERNELPATH only as flags.Bob Beck
2019-08-26When a thread tries to exclusively lock a vnode, the same thread mustanton
2019-08-13Revert unlock of lseek(2) since vn_lock() could end up calling tsleep()anton
2019-08-12Unlock lseek(2) since the file offset is MP-safe by now. Callinganton
2019-08-05Allow concurrent reads of the f_offset field of struct file byanton
2019-07-23Grab the vnode lock earlier in vn_read() since it could end up sleeping,anton
2019-07-21Grab the vnode lock in vn_seek(). Consensus has emerged around using theanton
2019-07-12Revert anton@ changes about read/write unlockingsolene
2019-07-10Make read/write of the f_offset field belonging to struct file MP-safe;anton
2019-06-22push the KERNEL_LOCK deeper on read(2) and write(2)Sebastien Marie
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingVisa Hankala
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingMartin Pieuchot
2018-08-15Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This preventsVisa Hankala
2018-07-03Add a new so_seek member to "struct file" such that we can have seekableMark Kettenis
2018-07-03Avoid NULL pointer deref in vn_writechk() when calling ftruncate() on a fileanton
2018-06-07Make callers of VOP_CREATE(9) and VOP_MKNOD(9) responsible forVisa Hankala
2018-05-02Remove proc from the parameters of vn_lock(). The parameter isVisa Hankala
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
2018-04-10Convert 'struct fileops' definitions to C99.Martin Pieuchot
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.Philip Guenther
2017-08-13Nuke trailing whitespaceBob Beck
2016-09-30Drop a now unneeded variable initialization; spotted by bluhm@Jeremie Courreges-Anglas
2016-09-30Make read(2) return EISDIR on directories.Jeremie Courreges-Anglas
2016-06-19Remove the lockmgr() API. It is only used by filesystems, where it is aMartin Natano
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
2016-01-06remove unnecessary casts where the incoming type is void *.Ted Unangst
2015-05-01Pass fflag to VOP_POLL so vfs fifo functions can get at the fileTodd C. Miller
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
2014-11-03include sys/unistd.h where needed instead of indirect reliance. ok jsgTed Unangst
2014-07-13pass the size to free in some of the obvious casesTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
2014-01-24Copy timespecs member by member in fo_stat callback functions, to avoidPhilip Guenther
2013-09-14Correct the handling of I/O of >=2^32 bytes and the ktracing there ofPhilip Guenther
2013-06-05Move FHASLOCK from f_flag to f_iflags, freeing up a bit for passingPhilip Guenther
2013-03-30vrele() is a tricky beast. it can sleep if the refcount hits zero,Ted Unangst
2012-07-11If the current offset is strictly less than the process filesizePhilip Guenthe
2011-11-27When checking for offset wrap around in vn_read(), compare againstPhilip Guenthe