]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: consolidate rounding up default_nslabs
authorChao Gao <chao.gao@intel.com>
Fri, 15 Jul 2022 10:45:34 +0000 (18:45 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Jul 2022 04:49:58 +0000 (06:49 +0200)
commit6dd00807b2681e07ee0bb137eeb5dd152f2aaaf4
tree2e8e1dc5c6a76b9a155e877916bc742623f0ed3d
parentf3ba1c9007b8bab226dcbea86da6a3f70898957c
swiotlb: consolidate rounding up default_nslabs

default_nslabs are rounded up in two cases with exactly same comments.
Add a simple wrapper to reduce duplicate code/comments. It is preparatory
to adding more logics into the round-up.

No functional change intended.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/swiotlb.c