]> 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)
commit14c10fe02b38982bae44ff8944040191a1d7c201
tree0d79653d0744398d1b48e019237872b6b6b3994e
parent54ed9e2d7b60f88d1177b7086e47ffd019f2e0b3
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