Skip to content

Commit 05aea81

Browse files
ming1axboe
authored andcommitted
fs: logfs: remove unnecesary check
The check on bio->bi_vcnt doesn't make sense in erase_end_io(). Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent c124843 commit 05aea81

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/logfs/dev_bdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ static void erase_end_io(struct bio *bio)
143143
struct logfs_super *super = logfs_super(sb);
144144

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

0 commit comments

Comments
 (0)