dm: fix dm_merge_bvec regression on 32 bit systems
authorMike Snitzer <snitzer@redhat.com>
Mon, 3 Aug 2015 13:54:58 +0000 (09:54 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 4 Aug 2015 02:49:59 +0000 (22:49 -0400)
commitbd4aaf8f9b85d6b2df3231fd62b219ebb75d3568
tree00b52bacf20f8c239e0edbbac3b8047f98c0bb0e
parent795e633a2dc6cbbeac68bc7f6006082150d38bb7
dm: fix dm_merge_bvec regression on 32 bit systems

A DM regression on 32 bit systems was reported against v4.2-rc3 here:
https://lkml.org/lkml/2015/7/29/401

Fix this by reverting both commit 1c220c69 ("dm: fix casting bug in
dm_merge_bvec()") and 148e51ba ("dm: improve documentation and code
clarity in dm_merge_bvec").  This combined revert is done to eliminate
the possibility of a partial revert in stable@ kernels.

In hindsight the correct fix, at the time 1c220c69 was applied to fix
the regression that 148e51ba introduced, should've been to simply revert
148e51ba.

Reported-by: Josh Boyer <jwboyer@fedoraproject.org>
Tested-by: Adam Williamson <awilliam@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 3.19+
drivers/md/dm.c