aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/ubifs.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-01-30 11:58:32 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-08 03:12:48 -0500
commit3e8e2e0c8da1f1701a8014543c951c41751791cc (patch)
treee58e0c2530b91f1809e59f3c2cdb2dee6856d338 /fs/ubifs/ubifs.h
parentf43ec882b8b65de0ebde2e1ad52e8de0349d83ae (diff)
UBIFS: incorporate maximum write size
Incorporate maximum write size into the UBIFS description data structure. This patch just introduces new 'c->max_write_size' and 'c->max_write_shift' fields as a preparation for the following patches. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r--fs/ubifs/ubifs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index d1823541f987..8b519499f14a 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -1024,6 +1024,9 @@ struct ubifs_debug_info;
1024 * 1024 *
1025 * @min_io_size: minimal input/output unit size 1025 * @min_io_size: minimal input/output unit size
1026 * @min_io_shift: number of bits in @min_io_size minus one 1026 * @min_io_shift: number of bits in @min_io_size minus one
1027 * @max_write_size: maximum amount of bytes the underlying flash can write at a
1028 * time (MTD write buffer size)
1029 * @max_write_shift: number of bits in @max_write_size minus one
1027 * @leb_size: logical eraseblock size in bytes 1030 * @leb_size: logical eraseblock size in bytes
1028 * @half_leb_size: half LEB size 1031 * @half_leb_size: half LEB size
1029 * @idx_leb_size: how many bytes of an LEB are effectively available when it is 1032 * @idx_leb_size: how many bytes of an LEB are effectively available when it is
@@ -1270,6 +1273,8 @@ struct ubifs_info {
1270 1273
1271 int min_io_size; 1274 int min_io_size;
1272 int min_io_shift; 1275 int min_io_shift;
1276 int max_write_size;
1277 int max_write_shift;
1273 int leb_size; 1278 int leb_size;
1274 int half_leb_size; 1279 int half_leb_size;
1275 int idx_leb_size; 1280 int idx_leb_size;