From: Borislav Petkov Date: Sun, 27 Apr 2008 13:38:32 +0000 (+0200) Subject: ide-tape: improve buffer allocation strategy X-Git-Tag: v2.6.26-rc1~1029^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41aa17069ea8d2b5cd2ca1ef7ff6cdb7c6abec95;p=pandora-kernel.git ide-tape: improve buffer allocation strategy Instead of allocating pages for the buffer one by one, take advantage of the buddy alloc system and request them 2^order at a time. This increases the chance for bigger buffer parts to be contigious and reduces loop iteration count. While at it, rename function __idetape_kmalloc_stage() to ide_tape_kmalloc_buffer(). [bart: fold with "ide-tape: fix mem leak" patch to preserve bisectability] Signed-off-by: Borislav Petkov Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed