]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Revert "bcache: fix fifo index swapping condition in journal_pin_cmp()"
authorJens Axboe <axboe@kernel.dk>
Mon, 18 Nov 2019 15:35:47 +0000 (08:35 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Nov 2019 15:35:47 +0000 (08:35 -0700)
commit00b89892c869f34528deca957b10d1468c4e8b38
tree6cff935bea03f4c7ad81a786b200dbe33535225c
parent97ab474c2dba93fe0bfddc23d58f35d5b562d6ad
Revert "bcache: fix fifo index swapping condition in journal_pin_cmp()"

Coly says:

"Guoju Fang talked to me today, he told me this change was unnecessary
and I was over-thought.

Then I realize fifo_idx() uses a mask to handle the array index overflow
condition, so the index swap in journal_pin_cmp() won't happen. And yes,
Guoju and Kent are correct.

Since you already applied this patch, can you please to remove this
patch from your for-next branch? This single patch does not break
thing, but it is unecessary at this moment."

This reverts commit c0e0954e909c17b43d176ab219fc598964616ae6.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/btree.c
drivers/md/bcache/journal.h