swiotlb: checking whether swiotlb buffer is full with io_tlb_used
authorDongli Zhang <dongli.zhang@oracle.com>
Fri, 18 Jan 2019 07:10:28 +0000 (15:10 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 12 Feb 2019 17:53:01 +0000 (12:53 -0500)
commit60513ed06a41049768a6875229b025b6e726e148
tree4c674fb2f2dcae13ba33ff82f0e937a66ce3b2e7
parent71602fe6d4e9291af105adfef8e893b57c735906
swiotlb: checking whether swiotlb buffer is full with io_tlb_used

This patch uses io_tlb_used to help check whether swiotlb buffer is full.
io_tlb_used is no longer used for only debugfs. It is also used to help
optimize swiotlb_tbl_map_single().

Suggested-by: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c