Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05aea81b authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

fs: logfs: remove unnecesary check



The check on bio->bi_vcnt doesn't make sense in erase_end_io().

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent c1248436
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);