mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
bcache: deleted code comments for dead code in bch_data_insert_keys()
In request.c:bch_data_insert_keys(), there is code comment for a piece of dead code. This patch deletes the dead code and its code comment since they are useless in practice. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
aaf8dbeab5
commit
41fa4deef9
1 changed files with 0 additions and 12 deletions
|
@ -62,18 +62,6 @@ static void bch_data_insert_keys(struct closure *cl)
|
||||||
struct bkey *replace_key = op->replace ? &op->replace_key : NULL;
|
struct bkey *replace_key = op->replace ? &op->replace_key : NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/*
|
|
||||||
* If we're looping, might already be waiting on
|
|
||||||
* another journal write - can't wait on more than one journal write at
|
|
||||||
* a time
|
|
||||||
*
|
|
||||||
* XXX: this looks wrong
|
|
||||||
*/
|
|
||||||
#if 0
|
|
||||||
while (atomic_read(&s->cl.remaining) & CLOSURE_WAITING)
|
|
||||||
closure_sync(&s->cl);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!op->replace)
|
if (!op->replace)
|
||||||
journal_ref = bch_journal(op->c, &op->insert_keys,
|
journal_ref = bch_journal(op->c, &op->insert_keys,
|
||||||
op->flush_journal ? cl : NULL);
|
op->flush_journal ? cl : NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue