Home | History | Annotate | Download | only in tmpfs
History log of /src/sys/fs/tmpfs/tmpfs_mem.c
RevisionDateAuthorComments
 1.14  29-Apr-2023  riastradh tmpfs: Nix trailing whitespace. No functional change intended.
 1.13  11-Jun-2020  ad uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched. It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.
 1.12  31-Dec-2019  ad Rename uvm_free() -> uvm_availmem().
 1.11  21-Dec-2019  ad uvmexp.free -> uvm_free()
 1.10  13-Jul-2019  maxv Remove the roundups, they are incorrect and cause memcmp to wrongfully fail
because of uninitialized bytes at the end of the buffers.

ok rmind@
 1.9  22-Aug-2016  skrll branches: 1.9.8; 1.9.16;
Two fixes from rmind

- tmpfs_node_get: restore (decrement) the node count on the error path.
- tmpfs_bytes_max: save the value of uvmexp.freetarg (since it is
unlocked/racy).
 1.8  13-Jun-2014  pooka branches: 1.8.4;
use psize_t for physical memory calculation
 1.7  10-Jun-2014  martin Make sure to expand "freepages" to 64bit before shifting to byte values -
on rump we may have all our virtual address space "free".
Pointed out by pooka@.
 1.6  07-Jun-2014  martin Remove the hardcoded 4 MB free kernel memory limit and replace it
by uvmexp.freetarg, as discussed on tech-kern.
Main purpose is to make tmpfs usable (as far as possible) on small memory
machines.
This is a bit experimental, but we need to give it some real world exposure
to see how well it works.
 1.5  30-Apr-2014  christos handle MNT_UPDATE
 1.4  24-May-2011  rmind branches: 1.4.4; 1.4.14; 1.4.18; 1.4.28;
- tmpfs_alloc_node/tmpfs_free_node: move inode limiting into tmpfs_node_get()
and tmpfs_node_put(), update outdated/wrong comments and move/add asserts.
- tmpfs_mount: check for the version of arguments a bit earlier.
 1.3  19-May-2011  rmind - tmpfs: do not create dirent/node pools per-mount, there is no need to.
- tmpfs_mount: fix a leak of mount structures in error path.
 1.2  28-Jun-2010  rmind branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
tmpfs_bytes_max: use MIN() rather than min(), which returns int.
Spotted by Wolfgang Solfrank.
 1.1  22-Jun-2010  rmind Replace tmpfs_pool custom allocator code with a simpler layer for memory
accounting. Use wired memory (which can be limited) for meta-data, and
kmem(9) for string allocations.

Close PR/31944. Fix PR/38361 while here. OK ad@.
 1.2.8.1  06-Jun-2011  jruoho Sync with HEAD.
 1.2.6.2  17-Aug-2010  uebayasi Sync with HEAD.
 1.2.6.1  28-Jun-2010  uebayasi file tmpfs_mem.c was added on branch uebayasi-xip on 2010-08-17 06:47:21 +0000
 1.2.4.2  11-Aug-2010  yamt sync with head.
 1.2.4.1  28-Jun-2010  yamt file tmpfs_mem.c was added on branch yamt-nfs-mp on 2010-08-11 22:54:36 +0000
 1.2.2.3  31-May-2011  rmind sync with head
 1.2.2.2  03-Jul-2010  rmind sync with head
 1.2.2.1  28-Jun-2010  rmind file tmpfs_mem.c was added on branch rmind-uvmplock on 2010-07-03 01:19:51 +0000
 1.4.28.1  10-Aug-2014  tls Rebase.
 1.4.18.1  18-May-2014  rmind sync with head
 1.4.14.2  03-Dec-2017  jdolecek update from HEAD
 1.4.14.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.4.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.4.1  05-Oct-2016  skrll Sync with HEAD
 1.9.16.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.16.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.9.8.1  04-Aug-2019  martin Pull up following revision(s) (requested by maxv in ticket #1321):

sys/fs/tmpfs/tmpfs_mem.c: revision 1.10

Remove the roundups, they are incorrect and cause memcmp to wrongfully fail
because of uninitialized bytes at the end of the buffers.

ok rmind@

RSS XML Feed