Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 3e4dd30

Browse files
author
lishuhao
committed
fix compile error on DMC_DEBUG true
Change-Id: I3f3c7ccc74a99dfa42e80650b7f04e98f26756a7
1 parent 437afbf commit 3e4dd30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/flashcache_main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ flashcache_do_pending_noerror(struct kcached_job *job)
514514
cacheblk->nr_queued--;
515515
if (pending_job->action == INVALIDATE) {
516516
DPRINTK("flashcache_do_pending: INVALIDATE %llu",
517-
next_job->bio->bi_sector);
517+
pending_job->bio->bi_sector);
518518
VERIFY(pending_job->bio != NULL);
519519
queued = flashcache_inval_blocks(dmc, pending_job->bio);
520520
if (queued) {
@@ -1683,6 +1683,7 @@ flashcache_inval_block_set_v3(struct cache_c *dmc, int set, struct bio *bio,
16831683
int rw = bio_data_dir(bio);
16841684
sector_t io_start;
16851685
sector_t mask;
1686+
sector_t start_dbn;
16861687

16871688
mask = ~((1 << dmc->block_shift) - 1);
16881689
io_start = bio->bi_sector & mask;
@@ -1717,6 +1718,7 @@ flashcache_inval_block_set_v3(struct cache_c *dmc, int set, struct bio *bio,
17171718
}
17181719
if (!(cacheblk->cache_state & (BLOCK_IO_INPROG | DIRTY)) &&
17191720
(cacheblk->nr_queued == 0)) {
1721+
start_dbn = dmc->cache[index].dbn;
17201722
atomic_dec(&dmc->cached_blocks);
17211723
DPRINTK("Cache invalidate (!BUSY): Block %llu %lx",
17221724
start_dbn, cacheblk->cache_state);

0 commit comments

Comments
 (0)