summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_swap.c
AgeCommit message (Expand)Author
2023-12-05Cast uvmexp.swpages to long before multiplying by 99 to avoid integerClaudio Jeker
2023-10-27Make out-of-swap checks more robust.Martin Pieuchot
2023-01-10The uvm_swap_data_lock mutex can now be taken without holding the kernelMark Kettenis
2022-10-11add missing unlock in swapmount()Jonathan Gray
2022-08-29Use a rwlock and a mutex to serialize access to global swap variables.Martin Pieuchot
2022-08-06blist: use swblk_t type (defined in sys/blist.h)Sebastien Marie
2022-07-29Replace the swap extent(9) usage by a blist data structure.Sebastien Marie
2022-07-18Restrict pledge("vminfo") callers to read-only swapctl(2) operations.Jeremie Courreges-Anglas
2022-07-11Remove asynchronous read support in uvm_swap_get().Martin Pieuchot
2022-06-30Remove an incorrect KASSERT() introduced in previous.Martin Pieuchot
2022-06-28Make sure uvm_swap_get() always sleep and do not return and error.Martin Pieuchot
2022-06-28Pre-allocate pages in DMA-reachable region to ensure progress in the swapper.Martin Pieuchot
2022-06-07Remove redundant check for free pages. The pmemrange code that is calledMark Kettenis
2022-04-28Update uvmexp.swpgonly only once in uvm_swap_get().Martin Pieuchot
2022-03-17In swap_io() allocate the buffer before doing encryption.Martin Pieuchot
2022-02-22Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>Philip Guenther
2021-12-12Add vnode parameter to VOP_STRATEGY()Visa Hankala
2021-11-11Convert a for loop into LIST_FOREACH to reduce the diff to NetBSD.Theo Buehler
2021-03-26Remove parenthesis around return value to reduce the diff with NetBSD.Martin Pieuchot
2021-03-04Modify `uvmexp.swpgonly' atomically, required for uvm_fault() w/o KERNEL_LOCK()Martin Pieuchot
2020-12-14Grab the KERNEL_LOCK() or ensure it's held when poking at swap data structures.Martin Pieuchot
2020-09-29Introduce a helper to check if all available swap is in use.Martin Pieuchot
2020-01-20struct vops is not modified during runtime so use const which moves eachClaudio Jeker
2019-12-05Remove clause #3 from mrg@NetBSD license.Martin Pieuchot
2019-04-02Restrict which filesystems are available for swap. This rules outVisa Hankala
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-04-09Convert a malloc(9) to mallocarray(9)David Hill
2016-09-15all pools have their ipl set via pool_setipl, so fold it into pool_init.David Gwynne
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-23Add 3 new pledge requests. "ps" exposes enough sysctl information forTheo de Raadt
2015-09-06sizes for free(); ok semarieTheo de Raadt
2015-08-23"XXXMRG: consider making it an inline or macro"Theo de Raadt
2015-05-04reduce the scope of things that include uvm_swap_encrypt.h.David Gwynne
2015-01-27remove the second void * argument on tasks.David Gwynne
2015-01-13pass the vnd xfer pointer to the tasks callback as part of theDavid Gwynne
2014-12-23I don't like these macros, they obscure the code.Ted Unangst
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
2014-11-17convert a copystr to strlcpy.Ted Unangst
2014-11-13sizes for simple frees. new diff without the bug spotted by deraadtTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-05-08Fix some potential integer overflows caused by converting a page number intoMark Kettenis
2014-04-29Replace 1 << PAGE_SHIFT with PAGE_SIZE.Mark Kettenis
2014-04-13compress code by turning four line comments into one line comments.Ted Unangst
2013-11-24Replace the swapdev CIRCLEQ with a TAILQ and replace the manually rolledJoel Sing
2013-11-21remove the #define b_cylinder b_resid from bufs. i hated theDavid Gwynne
2013-11-20Update comments mentioning `resource maps' to mention `extents' instead.Miod Vallat
2013-11-06remove some abuse of bufqs where they were overloaded to store workq_tasksDavid Gwynne
2013-11-05new function uvm_hibswap() finds a the largest free zone in swap, whichTheo de Raadt
2013-11-04If compiled for hibernate, reserve the last page of the primary swapTheo de Raadt