Skip to content

Commit

Permalink
UBIFS: store free and dirty space in the bud replay entry
Browse files Browse the repository at this point in the history
This is just a small preparation patch which adds 'free' and 'drity' fields to
'struct bud_entry'. They will be used to set bud lprops.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed May 16, 2011
1 parent 12f3389 commit af1dd41
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fs/ubifs/replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,16 @@ struct replay_entry {
* struct bud_entry - entry in the list of buds to replay.
* @list: next bud in the list
* @bud: bud description object
* @free: free bytes in the bud
* @sqnum: reference node sequence number
* @free: free bytes in the bud
* @dirty: dirty bytes in the bud
*/
struct bud_entry {
struct list_head list;
struct ubifs_bud *bud;
int free;
unsigned long long sqnum;
int free;
int dirty;
};

/**
Expand Down Expand Up @@ -720,6 +722,8 @@ static int replay_buds(struct ubifs_info *c)
&free, &dirty);
if (err)
return err;
b->free = free;
b->dirty = dirty;
err = insert_ref_node(c, b->bud->lnum, b->bud->start, b->sqnum,
free, dirty, b->bud->jhead);
if (err)
Expand Down

0 comments on commit af1dd41

Please sign in to comment.