fs: logfs: remove unnecesary check
authorMing Lei <tom.leiming@gmail.com>
Fri, 11 Nov 2016 12:05:40 +0000 (20:05 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 22 Nov 2016 15:57:55 +0000 (08:57 -0700)
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>
fs/logfs/dev_bdev.c

index b9188be0bf8358fb6beb113eca0e17ac1f23b99f..9bfa0151d7c9048610becc95c2e02508fe2e6f25 100644 (file)
@@ -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);