1
0
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:
Zdenek Kabelac 2024-04-30 13:49:45 +02:00
parent db6bb6e90b
commit 6f8abdc978
2 changed files with 12 additions and 12 deletions

View File

@ -184,16 +184,16 @@ static void _allocate_memory(void)
#else
#define MALLINFO mallinfo
#endif
/*
* 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
* arena. In this arena, the rules for using direct mmap are relaxed,
* circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can,
* however, detect when this happens with mallinfo() and try to co-opt
* malloc into using MMAP as a MORECORE substitute instead of returning
* MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the
* memory on free(), this is good enough for our purposes.
*/
/*
* 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
* arena. In this arena, the rules for using "direct" mmap are relaxed,
* circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can,
* however, detect when this happens with mallinfo() and try to co-opt
* malloc into using MMAP as a MORECORE substitute instead of returning
* MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the
* memory on free(), this is good enough for our purposes.
*/
while (missing > 0) {
struct MALLINFO inf = MALLINFO();
hblks = inf.hblks;

View File

@ -656,7 +656,7 @@ static void _add_oo_definition_line(const char *name, const char *line)
oo = &_oo_lines[_oo_line_count++];
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 */
}
@ -669,7 +669,7 @@ static void _add_oo_definition_line(const char *name, const char *line)
start = strchr(line, ':') + 2;
if (!(oo->line = strdup(start))) {
log_error("Failer to duplicate line %s.", start);
log_error("Filler to duplicate line %s.", start);
return;
}
}