diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/super.c | 1 | ||||
-rw-r--r-- | fs/ubifs/ubifs.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index efc327b92f98..d4b4cb4596e2 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -504,6 +504,7 @@ static int init_constants_early(struct ubifs_info *c) | |||
504 | 504 | ||
505 | c->leb_cnt = c->vi.size; | 505 | c->leb_cnt = c->vi.size; |
506 | c->leb_size = c->vi.usable_leb_size; | 506 | c->leb_size = c->vi.usable_leb_size; |
507 | c->leb_start = c->di.leb_start; | ||
507 | c->half_leb_size = c->leb_size / 2; | 508 | c->half_leb_size = c->leb_size / 2; |
508 | c->min_io_size = c->di.min_io_size; | 509 | c->min_io_size = c->di.min_io_size; |
509 | c->min_io_shift = fls(c->min_io_size) - 1; | 510 | c->min_io_shift = fls(c->min_io_size) - 1; |
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 8b519499f14a..942c1d3cb0db 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h | |||
@@ -1028,6 +1028,8 @@ struct ubifs_debug_info; | |||
1028 | * time (MTD write buffer size) | 1028 | * time (MTD write buffer size) |
1029 | * @max_write_shift: number of bits in @max_write_size minus one | 1029 | * @max_write_shift: number of bits in @max_write_size minus one |
1030 | * @leb_size: logical eraseblock size in bytes | 1030 | * @leb_size: logical eraseblock size in bytes |
1031 | * @leb_start: starting offset of logical eraseblocks within physical | ||
1032 | * eraseblocks | ||
1031 | * @half_leb_size: half LEB size | 1033 | * @half_leb_size: half LEB size |
1032 | * @idx_leb_size: how many bytes of an LEB are effectively available when it is | 1034 | * @idx_leb_size: how many bytes of an LEB are effectively available when it is |
1033 | * used to store indexing nodes (@leb_size - @max_idx_node_sz) | 1035 | * used to store indexing nodes (@leb_size - @max_idx_node_sz) |
@@ -1276,6 +1278,7 @@ struct ubifs_info { | |||
1276 | int max_write_size; | 1278 | int max_write_size; |
1277 | int max_write_shift; | 1279 | int max_write_shift; |
1278 | int leb_size; | 1280 | int leb_size; |
1281 | int leb_start; | ||
1279 | int half_leb_size; | 1282 | int half_leb_size; |
1280 | int idx_leb_size; | 1283 | int idx_leb_size; |
1281 | int leb_cnt; | 1284 | int leb_cnt; |