From: Martin K. Petersen Date: Thu, 17 Mar 2011 10:11:05 +0000 (+0100) Subject: block: Require subsystems to explicitly allocate bio_set integrity mempool X-Git-Tag: v2.6.39-rc1~80^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91a2785b200864aef2270ed6a3babac7a253a20;p=pandora-kernel.git block: Require subsystems to explicitly allocate bio_set integrity mempool MD and DM create a new bio_set for every metadevice. Each bio_set has an integrity mempool attached regardless of whether the metadevice is capable of passing integrity metadata. This is a waste of memory. Instead we defer the allocation decision to MD and DM since we know at metadevice creation time whether integrity passthrough is needed or not. Automatic integrity mempool allocation can then be removed from bioset_create() and we make an explicit integrity allocation for the fs_bio_set. Signed-off-by: Martin K. Petersen Reported-by: Zdenek Kabelac Acked-by: Mike Snitzer Signed-off-by: Jens Axboe --- Reading git-diff-tree failed