]> git.ipfire.org Git - people/arne_f/kernel.git/commit
swiotlb: factor out a nr_slots helper
authorJianxiong Gao <jxgao@google.com>
Thu, 29 Apr 2021 17:33:10 +0000 (17:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 May 2021 09:11:24 +0000 (11:11 +0200)
commit768cb8a9fcd78f6fe1267bb16584d9997455ed6f
treee14e410f00cd70ed347c294a83c1dff67fe21413
parent6d6158db1ecf12dd574c0560891b1573e7e2fda5
swiotlb: factor out a nr_slots helper

commit: c32a77fd18780a5192dfb6eec69f239faebf28fd

Factor out a helper to find the number of slots for a given size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jianxiong Gao <jxgao@google.com>
Tested-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/dma/swiotlb.c