UBUNTU: ubuntu: Add dm-raid4-5 driver -- port to 2.6.28
Bug: #309378
The dm-raid4-5 driver was disabled as it did not cleanly compile when
rebased to 2.6.28. This was due to two errors:
1) the removal of {set,clear}_page_locked() as the atomic versions were
no longer used elsewhere in the kernel, and
2) the array_too_big() function was renamed to dm_array_too_big() to
allow it to be exported.
As raid is a highly critical subsystem I have taken the safest possible
approach and assumed that RAID does require the atomic flag modifiers.
This patch therefore reinstates {set,clear}_page_locked() and moves the
code to using the new dm_array_too_big() interface. Finally it reenabled
the raid support.
I have deliberatly re-introduced {set,clear}_page_locked() into the
original headers next to their corresponding unlocked form such that
should those change again we will conflict and detect the change.
/* Size and allocate the RAID set structure. */
len = sizeof(*rs->data) + sizeof(*rs->dev);
- if (array_too_big(sizeof(*rs), len, raid_devs))
+ if (dm_array_too_big(sizeof(*rs), len, raid_devs))
goto bad_array;
len = sizeof(*rs) + raid_devs * len;
--
1.6.0.4.911.gc990
--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team