[PATCH 0/7] reliable memory allocation and fix for bug 1225370

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Here I'm posting a set of patches that introduce a new function 
dm_kvmalloc and fix bug 1225370.

dm_kvmalloc is general memory allocator for reliable allocation of objects 
of arbitrary size. It tries to use kmalloc first (because it is faster and 
it results in less pressure on the TLB). However, kmalloc of a large 
object may fail because of memory fragmentation - in that case it reverts 
to vmalloc.

The memory allocated with dm_kvmalloc should be freed with kvfree (that 
function is already present in the kernel in mm/util.c).

Mikulas

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux