mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
UBIFS: introduce a separate structure for budgeting info
This patch separates out all the budgeting-related information from 'struct ubifs_info' to 'struct ubifs_budg_info'. This way the code looks a bit cleaner. However, the main driver for this is that we want to save budgeting information and print it later, so a separate data structure for this is helpful. This patch is a preparation for the further debugging output improvements. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
cc64f774b4
commit
b137545c44
11 changed files with 134 additions and 129 deletions
|
@ -182,7 +182,7 @@ static int do_commit(struct ubifs_info *c)
|
|||
c->mst_node->root_len = cpu_to_le32(zroot.len);
|
||||
c->mst_node->ihead_lnum = cpu_to_le32(c->ihead_lnum);
|
||||
c->mst_node->ihead_offs = cpu_to_le32(c->ihead_offs);
|
||||
c->mst_node->index_size = cpu_to_le64(c->old_idx_sz);
|
||||
c->mst_node->index_size = cpu_to_le64(c->bi.old_idx_sz);
|
||||
c->mst_node->lpt_lnum = cpu_to_le32(c->lpt_lnum);
|
||||
c->mst_node->lpt_offs = cpu_to_le32(c->lpt_offs);
|
||||
c->mst_node->nhead_lnum = cpu_to_le32(c->nhead_lnum);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue