]> git.baikalelectronics.ru Git - kernel.git/commit
block: Fix nr_vecs for inline integrity vectors
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 6 Feb 2014 20:14:13 +0000 (15:14 -0500)
committerJens Axboe <axboe@fb.com>
Fri, 7 Feb 2014 20:49:48 +0000 (13:49 -0700)
commit677b136542a94fabca60f0dcff70247d54186578
treed4cd09112a3620906034e88a342b05d1ea49232a
parent9d6e61065c846cee9210bbf7dea8c6370a6db5a4
block: Fix nr_vecs for inline integrity vectors

Commit 2082a559269e changed the way we handle allocations for the
integrity vectors. When the vectors are inline there is no associated
slab and consequently bvec_nr_vecs() returns 0. Ensure that we check
against BIP_INLINE_VECS in that case.

Reported-by: David Milburn <dmilburn@redhat.com>
Tested-by: David Milburn <dmilburn@redhat.com>
Cc: stable@vger.kernel.org # v3.10+
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/bio-integrity.c