Skip to content

Commit

Permalink
fs: logfs: remove unnecesary check
Browse files Browse the repository at this point in the history
The check on bio->bi_vcnt doesn't make sense in erase_end_io().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
ming1 authored and axboe committed Nov 22, 2016
1 parent c124843 commit 05aea81
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/logfs/dev_bdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ static void erase_end_io(struct bio *bio)
struct logfs_super *super = logfs_super(sb);

BUG_ON(bio->bi_error); /* FIXME: Retry io or write elsewhere */
BUG_ON(bio->bi_vcnt == 0);
bio_put(bio);
if (atomic_dec_and_test(&super->s_pending_writes))
wake_up(&wq);
Expand Down

0 comments on commit 05aea81

Please sign in to comment.