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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Feb 2014 20:41:28 +0000 (12:41 -0800)
commitcaaeac355477b49d6b50791fb6f0ced3d2b4e93b
tree37217dcb38d62347d47199945a069cd3402bad40
parent404ced25b4212bcaaa2de3be6861433587717bbf
block: Fix nr_vecs for inline integrity vectors

commit 087787959ce851d7bbb19f10f6e9241b7f85a3ca upstream.

Commit 9f060e2231ca 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>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/bio-integrity.c