Skip to content

Commit

Permalink
lightnvm: pblk: cleanup unnecessary code
Browse files Browse the repository at this point in the history
Cleanup unnecessary headers and code lines.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Javier González authored and Jens Axboe committed Jun 26, 2017
1 parent 63e3809 commit 0c0ea88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion drivers/lightnvm/pblk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include "pblk.h"
#include <linux/time.h>

static void pblk_mark_bb(struct pblk *pblk, struct pblk_line *line,
struct ppa_addr *ppa)
Expand Down
6 changes: 0 additions & 6 deletions drivers/lightnvm/pblk-write.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@ static unsigned long pblk_end_w_bio(struct pblk *pblk, struct nvm_rq *rqd,

for (i = 0; i < c_ctx->nr_valid; i++) {
struct pblk_w_ctx *w_ctx;
struct ppa_addr p;
struct pblk_line *line;

w_ctx = pblk_rb_w_ctx(&pblk->rwb, c_ctx->sentry + i);

p = rqd->ppa_list[i];
line = &pblk->lines[pblk_dev_ppa_to_line(p)];

while ((original_bio = bio_list_pop(&w_ctx->bios)))
bio_endio(original_bio);
}
Expand Down

0 comments on commit 0c0ea88

Please sign in to comment.