diff options
author | Tom Rini <trini@konsulko.com> | 2018-03-25 12:02:13 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-03-25 12:02:13 -0400 |
commit | 81cf7c8d45935a295991fe2cd1df286f0f47511f (patch) | |
tree | 4bc1835497b5e5a6df48396c88aa445e03cb5f91 /fs/ubifs/super.c | |
parent | 2dc5165ee04dedfa88ebc9fc79c29bd56a54681d (diff) | |
parent | c0ce4ceaba03fa6ddf738628344025c44fc78dd4 (diff) |
Merge git://git.denx.de/u-boot-ubi
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index effa8d933fe..2c478cba963 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -1334,7 +1334,10 @@ static int check_free_space(struct ubifs_info *c) static int mount_ubifs(struct ubifs_info *c) { int err; - long long x, y; + long long x; +#ifndef CONFIG_UBIFS_SILENCE_MSG + long long y; +#endif size_t sz; c->ro_mount = !!(c->vfs_sb->s_flags & MS_RDONLY); @@ -1613,7 +1616,9 @@ static int mount_ubifs(struct ubifs_info *c) c->vi.ubi_num, c->vi.vol_id, c->vi.name, c->ro_mount ? ", R/O mode" : ""); x = (long long)c->main_lebs * c->leb_size; +#ifndef CONFIG_UBIFS_SILENCE_MSG y = (long long)c->log_lebs * c->leb_size + c->max_bud_bytes; +#endif ubifs_msg(c, "LEB size: %d bytes (%d KiB), min./max. I/O unit sizes: %d bytes/%d bytes", c->leb_size, c->leb_size >> 10, c->min_io_size, c->max_write_size); |