diff options
author | Ming Lei <tom.leiming@gmail.com> | 2016-11-11 13:05:40 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-22 16:57:55 +0100 |
commit | 05aea81b4bc9e51dabd4559666c1d8d004f3662a (patch) | |
tree | caabc0af61bacc1c21190cbd1d4034265a503932 | |
parent | fs: logfs: use bio_add_page() in do_erase() (diff) | |
download | linux-05aea81b4bc9e51dabd4559666c1d8d004f3662a.tar.xz linux-05aea81b4bc9e51dabd4559666c1d8d004f3662a.zip |
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>
-rw-r--r-- | fs/logfs/dev_bdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c index b9188be0bf83..9bfa0151d7c9 100644 --- a/fs/logfs/dev_bdev.c +++ b/fs/logfs/dev_bdev.c @@ -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); |