raid5-cache: refactor bio allocation
authorChristoph Hellwig <hch@lst.de>
Mon, 5 Oct 2015 07:31:11 +0000 (09:31 +0200)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:28 +0000 (13:48 +1100)
commitb349feb36cc2b7ed41a5222a0b681153f3525369
tree072a780447b514d522c9d1ded35a1fe0e05f1d0e
parent22581f58ed3f0c9eb066d67b696b66f951df5c2b
raid5-cache: refactor bio allocation

Split out a helper to allocate a bio for log writes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid5-cache.c