mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: tab indent and typo
This commit is contained in:
parent
db6bb6e90b
commit
6f8abdc978
@ -184,16 +184,16 @@ static void _allocate_memory(void)
|
|||||||
#else
|
#else
|
||||||
#define MALLINFO mallinfo
|
#define MALLINFO mallinfo
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* When a brk() fails due to fragmented address space (which sometimes
|
* When a brk() fails due to fragmented address space (which sometimes
|
||||||
* happens when we try to grab 8M or so), glibc will make a new
|
* happens when we try to grab 8M or so), glibc will make a new
|
||||||
* arena. In this arena, the rules for using “direct” mmap are relaxed,
|
* arena. In this arena, the rules for using "direct" mmap are relaxed,
|
||||||
* circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can,
|
* circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can,
|
||||||
* however, detect when this happens with mallinfo() and try to co-opt
|
* however, detect when this happens with mallinfo() and try to co-opt
|
||||||
* malloc into using MMAP as a MORECORE substitute instead of returning
|
* malloc into using MMAP as a MORECORE substitute instead of returning
|
||||||
* MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the
|
* MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the
|
||||||
* memory on free(), this is good enough for our purposes.
|
* memory on free(), this is good enough for our purposes.
|
||||||
*/
|
*/
|
||||||
while (missing > 0) {
|
while (missing > 0) {
|
||||||
struct MALLINFO inf = MALLINFO();
|
struct MALLINFO inf = MALLINFO();
|
||||||
hblks = inf.hblks;
|
hblks = inf.hblks;
|
||||||
|
@ -656,7 +656,7 @@ static void _add_oo_definition_line(const char *name, const char *line)
|
|||||||
oo = &_oo_lines[_oo_line_count++];
|
oo = &_oo_lines[_oo_line_count++];
|
||||||
|
|
||||||
if (!(oo->name = strdup(name))) {
|
if (!(oo->name = strdup(name))) {
|
||||||
log_error("Failer to duplicate name %s.", name);
|
log_error("Failed to duplicate name %s.", name);
|
||||||
return; /* FIXME: return code */
|
return; /* FIXME: return code */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -669,7 +669,7 @@ static void _add_oo_definition_line(const char *name, const char *line)
|
|||||||
|
|
||||||
start = strchr(line, ':') + 2;
|
start = strchr(line, ':') + 2;
|
||||||
if (!(oo->line = strdup(start))) {
|
if (!(oo->line = strdup(start))) {
|
||||||
log_error("Failer to duplicate line %s.", start);
|
log_error("Filler to duplicate line %s.", start);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user