]> git.baikalelectronics.ru Git - kernel.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)
commit289cb31f10443d90fb84b3101b97edc06271770d
tree0d79653d0744398d1b48e019237872b6b6b3994e
parent7a8010ee187c772d239731d548f6f8f757b49d39
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