diff options
author | Lukas Czerner <lczerner@redhat.com> | 2011-05-06 19:26:28 -0600 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-06 19:26:28 -0600 |
commit | 5baebe5c86acd6100536a466905880529f79cf1a (patch) | |
tree | 6c7b4e6e170037981ea1bc094547034d3281c344 /mm/failslab.c | |
parent | 5dba3089ed03f84b84c6c739df8330112f04a15d (diff) | |
download | linux-5baebe5c86acd6100536a466905880529f79cf1a.tar.bz2 |
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>
Diffstat (limited to 'mm/failslab.c')
0 files changed, 0 insertions, 0 deletions