From f6a6a017d67fb660186a8f3b958a7e66c9f4ee86 Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 26 Jan 2017 10:35:04 +0000 Subject: MFC r312124 (by mjg): tmpfs: manage tm_pages_used with atomics. --- sys/fs/tmpfs/tmpfs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/fs/tmpfs/tmpfs.h') diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h index cf1e3fa..8cd1c4b 100644 --- a/sys/fs/tmpfs/tmpfs.h +++ b/sys/fs/tmpfs/tmpfs.h @@ -312,12 +312,12 @@ struct tmpfs_mount { /* Maximum number of memory pages available for use by the file * system, set during mount time. This variable must never be * used directly as it may be bigger than the current amount of - * free memory; in the extreme case, it will hold the SIZE_MAX + * free memory; in the extreme case, it will hold the ULONG_MAX * value. */ - size_t tm_pages_max; + u_long tm_pages_max; /* Number of pages in use by the file system. */ - size_t tm_pages_used; + u_long tm_pages_used; /* Pointer to the node representing the root directory of this * file system. */ -- cgit v1.1