]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
UBIFS: store free and dirty space in the bud replay entry
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 15 May 2011 08:14:57 +0000 (11:14 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 16 May 2011 07:31:40 +0000 (10:31 +0300)
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>
fs/ubifs/replay.c

index 5e815034aabdc9aee42316e148afc5275578b376..ee2f0b240ce03249eee7d723aea124667163bc5a 100644 (file)
@@ -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;
 };
 
 /**
@@ -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)