swiotlb: rename unmap_single to do_unmap_single
authorBecky Bruce <beckyb@kernel.crashing.org>
Wed, 8 Apr 2009 14:09:19 +0000 (09:09 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 8 Apr 2009 14:18:37 +0000 (16:18 +0200)
commit7fcebbd2d984eac3fdd6da2f4453e7c43d32de89
tree0ebf481563b44a82688418eb6e607984591b1963
parentef5722f698bde01cfec2b98fff733a48663ebf55
swiotlb: rename unmap_single to do_unmap_single

Previously, swiotlb_unmap_page and swiotlb_unmap_sg were
duplicating very similar code.  Refactor that code into a
new unmap_single and unmap_single use do_unmap_single.

Note that the swiotlb_unmap_sg code was previously doing
a complicated comparison to determine if an addresses needed
to be unmapped where a simple is_swiotlb_buffer() call
would have sufficed.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Cc: jeremy@goop.org
Cc: ian.campbell@citrix.com
LKML-Reference: <1239199761-22886-6-git-send-email-galak@kernel.crashing.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
lib/swiotlb.c