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)
commit6c7f74f703cc4baf053270a6e78a32f832f03445
tree3674246ea035096e5ab7536e7c6fdad8899c6d3a
parent3c89f396dc78671cfbc1eb20ef1d5be6a9a02780
UBIFS: use max_write_size for write-buffers

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>
fs/ubifs/io.c