diff options
author | kib <kib@FreeBSD.org> | 2017-01-26 10:19:53 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-01-26 10:19:53 +0000 |
commit | 141cc187fd70c1100c56386ec4214e37f78c023b (patch) | |
tree | 85f9047402d627e8965c457f81d8ed0a60603b01 /sys/fs/tmpfs/tmpfs_vfsops.c | |
parent | 82e86dbbf49dc49af534b71619228971159f6526 (diff) | |
download | FreeBSD-src-141cc187fd70c1100c56386ec4214e37f78c023b.zip FreeBSD-src-141cc187fd70c1100c56386ec4214e37f78c023b.tar.gz |
MFC r312124 (by mjg):
tmpfs: manage tm_pages_used with atomics.
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_vfsops.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index 67de4b6..869b6f1 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -397,7 +397,7 @@ tmpfs_statfs(struct mount *mp, struct statfs *sbp) sbp->f_bsize = PAGE_SIZE; used = tmpfs_pages_used(tmp); - if (tmp->tm_pages_max != SIZE_MAX) + if (tmp->tm_pages_max != ULONG_MAX) sbp->f_blocks = tmp->tm_pages_max; else sbp->f_blocks = used + tmpfs_mem_avail(); |