svn commit: r356744 - head/sys/fs/tmpfs

Mateusz Guzik mjg at FreeBSD.org
Wed Jan 15 01:32:12 UTC 2020


Author: mjg
Date: Wed Jan 15 01:32:11 2020
New Revision: 356744
URL: https://svnweb.freebsd.org/changeset/base/356744

Log:
  tmpfs: add missing CLTFLAG_MPSAFE annotation

Modified:
  head/sys/fs/tmpfs/tmpfs_subr.c

Modified: head/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_subr.c	Wed Jan 15 01:31:57 2020	(r356743)
+++ head/sys/fs/tmpfs/tmpfs_subr.c	Wed Jan 15 01:32:11 2020	(r356744)
@@ -160,8 +160,9 @@ sysctl_mem_reserved(SYSCTL_HANDLER_ARGS)
 	return (0);
 }
 
-SYSCTL_PROC(_vfs_tmpfs, OID_AUTO, memory_reserved, CTLTYPE_LONG|CTLFLAG_RW,
-    &tmpfs_pages_reserved, 0, sysctl_mem_reserved, "L",
+SYSCTL_PROC(_vfs_tmpfs, OID_AUTO, memory_reserved,
+    CTLTYPE_LONG|CTLFLAG_MPSAFE|CTLFLAG_RW, &tmpfs_pages_reserved, 0,
+    sysctl_mem_reserved, "L",
     "Amount of available memory and swap below which tmpfs growth stops");
 
 static __inline int tmpfs_dirtree_cmp(struct tmpfs_dirent *a,


More information about the svn-src-all mailing list