summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/super.c
diff options
context:
space:
mode:
authorTang Junhui <tang.junhui.linux@gmail.com>2018-10-08 20:41:14 +0800
committerJens Axboe <axboe@kernel.dk>2018-10-08 08:19:48 -0600
commit2d6cb6edd2c7fb4f40998895bda45006281b1ac5 (patch)
tree2a004cef64480c67f78e4221b17cb23dd8e7cb2e /drivers/md/bcache/super.c
parent7567c2a2ad9e80a2ce977eef535e64b61899633e (diff)
bcache: fix miss key refill->end in writeback
refill->end record the last key of writeback, for example, at the first time, keys (1,128K) to (1,1024K) are flush to the backend device, but the end key (1,1024K) is not included, since the bellow code: if (bkey_cmp(k, refill->end) >= 0) { ret = MAP_DONE; goto out; } And in the next time when we refill writeback keybuf again, we searched key start from (1,1024K), and got a key bigger than it, so the key (1,1024K) missed. This patch modify the above code, and let the end key to be included to the writeback key buffer. Signed-off-by: Tang Junhui <tang.junhui.linux@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/super.c')
0 files changed, 0 insertions, 0 deletions