]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-mem: simplify MAX_ORDER - 1 / pageblock_order handling
authorDavid Hildenbrand <david@redhat.com>
Thu, 12 Nov 2020 13:37:49 +0000 (14:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Dec 2020 21:14:25 +0000 (16:14 -0500)
commit3f4d4b8bfdbfff5b38dd004bf331ec015da54dc8
treed08873c2269b7245a1487b8a244fcfa73697d089
parent7aff24da7102d70aa307abce1e7d64103b3f0540
virtio-mem: simplify MAX_ORDER - 1 / pageblock_order handling

Let's use pageblock_nr_pages and MAX_ORDER_NR_PAGES instead where
possible to simplify.

Add a comment why we have that restriction for now.

Reviewed-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20201112133815.13332-4-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_mem.c