exofs: Fix groups code when num_devices is not divisible by group_width
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 2 Aug 2010 17:06:46 +0000 (20:06 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Wed, 4 Aug 2010 10:17:58 +0000 (13:17 +0300)
commit5002dd18c5940ce63b917d84f2b852c3b96009bb
treedcba726c5e705c787c00f7fac67201a82e06191a
parent6e31609b1dcd595d7e4676ce62323532b29e8999
exofs: Fix groups code when num_devices is not divisible by group_width

There is a bug when num_devices is not divisible by group_width * mirrors.
We would not return to the proper device and offset when looping on to the
next group.

The fix makes code simpler actually.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/ios.c