bcache: Correctly check against BIO_MAX_PAGES
authorKent Overstreet <koverstreet@google.com>
Wed, 10 Apr 2013 22:50:57 +0000 (15:50 -0700)
committerKent Overstreet <koverstreet@google.com>
Sun, 21 Apr 2013 00:57:42 +0000 (17:57 -0700)
commit1545f13730be43278ce12f4af7e51b4dee5066a8
treeb1672097ddec583788cc87759b365287fa2b2fa8
parentbca97adaf522dff0e9ccf2c3f4150a1a7378932a
bcache: Correctly check against BIO_MAX_PAGES

bch_bio_max_sectors() was checking against BIO_MAX_PAGES as if the limit
was for the total bytes in the bio, not the number of segments.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/io.c