diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-15 04:14:57 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-16 03:31:40 -0400 |
commit | af1dd412646a58b29522f93f7befa944d7d361c0 (patch) | |
tree | fb2c3ac218d4978bec8e872264ca3afd9bf07716 /fs | |
parent | 12f338914e7f2a9ab0def09564b9e78ab45a474f (diff) |
UBIFS: store free and dirty space in the bud replay entry
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/replay.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c index 5e815034aabd..ee2f0b240ce0 100644 --- a/fs/ubifs/replay.c +++ b/fs/ubifs/replay.c | |||
@@ -90,14 +90,16 @@ struct replay_entry { | |||
90 | * struct bud_entry - entry in the list of buds to replay. | 90 | * struct bud_entry - entry in the list of buds to replay. |
91 | * @list: next bud in the list | 91 | * @list: next bud in the list |
92 | * @bud: bud description object | 92 | * @bud: bud description object |
93 | * @free: free bytes in the bud | ||
94 | * @sqnum: reference node sequence number | 93 | * @sqnum: reference node sequence number |
94 | * @free: free bytes in the bud | ||
95 | * @dirty: dirty bytes in the bud | ||
95 | */ | 96 | */ |
96 | struct bud_entry { | 97 | struct bud_entry { |
97 | struct list_head list; | 98 | struct list_head list; |
98 | struct ubifs_bud *bud; | 99 | struct ubifs_bud *bud; |
99 | int free; | ||
100 | unsigned long long sqnum; | 100 | unsigned long long sqnum; |
101 | int free; | ||
102 | int dirty; | ||
101 | }; | 103 | }; |
102 | 104 | ||
103 | /** | 105 | /** |
@@ -720,6 +722,8 @@ static int replay_buds(struct ubifs_info *c) | |||
720 | &free, &dirty); | 722 | &free, &dirty); |
721 | if (err) | 723 | if (err) |
722 | return err; | 724 | return err; |
725 | b->free = free; | ||
726 | b->dirty = dirty; | ||
723 | err = insert_ref_node(c, b->bud->lnum, b->bud->start, b->sqnum, | 727 | err = insert_ref_node(c, b->bud->lnum, b->bud->start, b->sqnum, |
724 | free, dirty, b->bud->jhead); | 728 | free, dirty, b->bud->jhead); |
725 | if (err) | 729 | if (err) |