[PATCH] md: limit size of sb read/written to appropriate amount