]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dm bufio: clean up rbtree block ordering
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Jun 2020 13:34:39 +0000 (15:34 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:41 +0000 (14:59 -0400)
commit88f878e58879acfdad03e08776c9802f9cd6f26a
tree0d79653d0744398d1b48e019237872b6b6b3994e
parent40e9c5ac4e3d670799a247944c330e5126935a7c
dm bufio: clean up rbtree block ordering

dm-bufio uses unnatural ordering in the rb-tree - blocks with smaller
numbers were put to the right node and blocks with bigger numbers were
put to the left node.

Reverse that logic so that it's natural.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c