mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user