]> git.baikalelectronics.ru Git - kernel.git/commit
blkdev: Simple cleanup in blkdev_issue_zeroout()
authorLukas Czerner <lczerner@redhat.com>
Sat, 7 May 2011 01:26:28 +0000 (19:26 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 May 2011 01:26:28 +0000 (19:26 -0600)
commit8346dcb01a2176aac91f45a73609a8ca105d5039
tree6c7b4e6e170037981ea1bc094547034d3281c344
parentd1454959921580b88123cdc7069c62b3ae8fd978
blkdev: Simple cleanup in blkdev_issue_zeroout()

In blkdev_issue_zeroout() we are submitting regular WRITE bios, so we do
not need to check for -EOPNOTSUPP specifically in case of error. Also
there is no need to have label submit: because there is no way to jump
out from the while cycle without an error and we really want to exit,
rather than try again. And also remove the check for (sz == 0) since at
that point sz can never be zero.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
CC: Dmitry Monakhov <dmonakhov@openvz.org>
CC: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-lib.c