]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ide-tape: improve buffer allocation strategy
authorBorislav Petkov <petkovbb@googlemail.com>
Sun, 27 Apr 2008 13:38:32 +0000 (15:38 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 27 Apr 2008 13:38:32 +0000 (15:38 +0200)
commit41aa17069ea8d2b5cd2ca1ef7ff6cdb7c6abec95
treebf622ae5f84894a20fba961d010e083372b19e4d
parent4c3032d8a4d6c97bd6e02bcab524ef2428d89561
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 <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-tape.c