UBIFS: introduce write-buffer size field
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 1 Feb 2011 17:02:49 +0000 (19:02 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 8 Mar 2011 08:12:49 +0000 (10:12 +0200)
commit3c89f396dc78671cfbc1eb20ef1d5be6a9a02780
tree6ed2ba3d484f8b92eed00b619128a79ecd094f4d
parentca2ec61d157f23ec24aaa200f8016ea0a8aeb617
UBIFS: introduce write-buffer size field

Currently we assume write-buffer size is always min_io_size. But
this is about to change and write-buffers may be of variable size.
Namely, they will be of max_write_size at the beginning, but will
get smaller when we are approaching the end of LEB.

This is a preparation patch which introduces 'size' field in
the write-buffer structure which carries the current write-buffer
size.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/io.c
fs/ubifs/ubifs.h