mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
fs: logfs: remove unnecesary check
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>
This commit is contained in:
parent
c124843678
commit
05aea81b4b
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue