summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs/tmpfs.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-01-26 10:35:04 +0000
committerkib <kib@FreeBSD.org>2017-01-26 10:35:04 +0000
commitf6a6a017d67fb660186a8f3b958a7e66c9f4ee86 (patch)
tree10c2111d4b5a74f0cee95f0c08d66835d47791fc /sys/fs/tmpfs/tmpfs.h
parent9ebb8955101abeaccf832d648c5650adc803c1f8 (diff)
downloadFreeBSD-src-f6a6a017d67fb660186a8f3b958a7e66c9f4ee86.zip
FreeBSD-src-f6a6a017d67fb660186a8f3b958a7e66c9f4ee86.tar.gz
MFC r312124 (by mjg):
tmpfs: manage tm_pages_used with atomics.
Diffstat (limited to 'sys/fs/tmpfs/tmpfs.h')
-rw-r--r--sys/fs/tmpfs/tmpfs.h6
1 files changed, 3 insertions, 3 deletions
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. */
OpenPOWER on IntegriCloud