Minor style(9) fixups
Delete trailing whitespace and sort headers. Leave libgeom.h's placement alone, per reasoning in r317289. MFC after: 5 weeks Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
d1f57d5900
commit
ae0cf296c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317310
@ -29,20 +29,18 @@
|
|||||||
* $FreeBSD$
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <paths.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/devicestat.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <paths.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <libgeom.h>
|
#include <libgeom.h>
|
||||||
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/devicestat.h>
|
|
||||||
|
|
||||||
|
|
||||||
/************************************************************/
|
/************************************************************/
|
||||||
static uint npages, pagesize, spp;
|
static uint npages, pagesize, spp;
|
||||||
static int statsfd = -1;
|
static int statsfd = -1;
|
||||||
@ -67,7 +65,7 @@ geom_stats_resync(void)
|
|||||||
if (statsfd == -1)
|
if (statsfd == -1)
|
||||||
return;
|
return;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
p = mmap(statp, (npages + 1) * pagesize,
|
p = mmap(statp, (npages + 1) * pagesize,
|
||||||
PROT_READ, MAP_SHARED, statsfd, 0);
|
PROT_READ, MAP_SHARED, statsfd, 0);
|
||||||
if (p == MAP_FAILED)
|
if (p == MAP_FAILED)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user