UBI: Kill data type hint
We do not need this feature and to our shame it even was not working and there was a bug found very recently. -- Artem Bityutskiy Without the data type hint UBI2 (fastmap) will be easier to implement. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:

committed by
Artem Bityutskiy

parent
0964f6a27b
commit
b36a261e8c
@@ -258,7 +258,7 @@ int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs)
|
||||
* an unclean reboot, because the target LEB might have been
|
||||
* unmapped, but not yet physically erased.
|
||||
*/
|
||||
err = ubifs_leb_map(c, bud->lnum, UBI_SHORTTERM);
|
||||
err = ubifs_leb_map(c, bud->lnum);
|
||||
if (err)
|
||||
goto out_unlock;
|
||||
}
|
||||
@@ -266,7 +266,7 @@ int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs)
|
||||
dbg_log("write ref LEB %d:%d",
|
||||
c->lhead_lnum, c->lhead_offs);
|
||||
err = ubifs_write_node(c, ref, UBIFS_REF_NODE_SZ, c->lhead_lnum,
|
||||
c->lhead_offs, UBI_SHORTTERM);
|
||||
c->lhead_offs);
|
||||
if (err)
|
||||
goto out_unlock;
|
||||
|
||||
@@ -418,7 +418,7 @@ int ubifs_log_start_commit(struct ubifs_info *c, int *ltail_lnum)
|
||||
|
||||
len = ALIGN(len, c->min_io_size);
|
||||
dbg_log("writing commit start at LEB %d:0, len %d", c->lhead_lnum, len);
|
||||
err = ubifs_leb_write(c, c->lhead_lnum, cs, 0, len, UBI_SHORTTERM);
|
||||
err = ubifs_leb_write(c, c->lhead_lnum, cs, 0, len);
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
@@ -619,7 +619,7 @@ static int add_node(struct ubifs_info *c, void *buf, int *lnum, int *offs,
|
||||
int sz = ALIGN(*offs, c->min_io_size), err;
|
||||
|
||||
ubifs_pad(c, buf + *offs, sz - *offs);
|
||||
err = ubifs_leb_change(c, *lnum, buf, sz, UBI_SHORTTERM);
|
||||
err = ubifs_leb_change(c, *lnum, buf, sz);
|
||||
if (err)
|
||||
return err;
|
||||
*lnum = ubifs_next_log_lnum(c, *lnum);
|
||||
@@ -698,7 +698,7 @@ int ubifs_consolidate_log(struct ubifs_info *c)
|
||||
int sz = ALIGN(offs, c->min_io_size);
|
||||
|
||||
ubifs_pad(c, buf + offs, sz - offs);
|
||||
err = ubifs_leb_change(c, write_lnum, buf, sz, UBI_SHORTTERM);
|
||||
err = ubifs_leb_change(c, write_lnum, buf, sz);
|
||||
if (err)
|
||||
goto out_free;
|
||||
offs = ALIGN(offs, c->min_io_size);
|
||||
|
Reference in New Issue
Block a user