[SG] Update drivers to use sg helpers

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
Jens Axboe
2007-10-22 21:19:53 +02:00
parent 78c2f0b8c2
commit 45711f1af6
82 changed files with 278 additions and 275 deletions

View File

@ -360,9 +360,9 @@ static void free_sglist (struct scatterlist *sg, int nents)
if (!sg)
return;
for (i = 0; i < nents; i++) {
if (!sg [i].page)
if (!sg_page(&sg[i]))
continue;
kfree (page_address (sg [i].page) + sg [i].offset);
kfree (sg_virt(&sg[i]));
}
kfree (sg);
}