UBIFS: use max_write_size for write-buffers
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 6 Feb 2011 12:45:26 +0000 (14:45 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 8 Mar 2011 08:12:49 +0000 (10:12 +0200)
Switch write-buffers from 'c->min_io_size' to 'c->max_write_size' which
presumably has to be more write speed-efficient. However, when write-buffer
is synchronized, write only the the min. I/O units which contain the
data, do not write whole write-buffer. This is more space-efficient.

Additionally, this patch takes into account that the LEB might not start
from the max. write unit-aligned address.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found