bio: change some signed vars to unsigned
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Nov 2011 08:21:50 +0000 (09:21 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Nov 2011 08:21:50 +0000 (09:21 +0100)
commit121f099412bd6576dfb3d94222e89d9341362177
tree47b82e98cb879d4cf08f0465ade31d58833cf53c
parent3540d5e89b2ac268fcfc9b07a50a9ba4acc2e5e5
bio: change some signed vars to unsigned

This is just a cleanup patch to silence a static checker warning.

The problem is that we cap "nr_iovecs" so it can't be larger than
"UIO_MAXIOV" but we don't check for negative values.  It turns out this is
prevented at other layers, but logically it doesn't make sense to have
negative nr_iovecs so making it unsigned is nicer.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/bio.c
include/linux/bio.h