~ubuntu-branches/ubuntu/vivid/xfsprogs/vivid

« back to all changes in this revision

Viewing changes to repair/incore.c

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Scott
  • Date: 2009-09-17 14:32:48 UTC
  • Revision ID: james.westby@ubuntu.com-20090917143248-jrclwl1byyautnnk
Tags: 3.0.4
* New bugfix release
* Resolve a libxfs unaligned access (closes: #517553)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "err_protos.h"
26
26
#include "threads.h"
27
27
 
28
 
/*
29
 
 * push a block allocation record onto list.  assumes list
30
 
 * if set to NULL if empty.
31
 
 */
32
 
void
33
 
record_allocation(ba_rec_t *addr, ba_rec_t *list)
34
 
{
35
 
        addr->next = list;
36
 
        list = addr;
37
 
 
38
 
        return;
39
 
}
40
 
 
41
 
void
42
 
free_allocations(ba_rec_t *list)
43
 
{
44
 
        ba_rec_t *current = list;
45
 
 
46
 
        while (list != NULL)  {
47
 
                list = list->next;
48
 
                free(current);
49
 
                current = list;
50
 
        }
51
 
 
52
 
        return;
53
 
}
54
 
 
55
28
/* ba bmap setupstuff.  setting/getting state is in incore.h  */
56
29
 
57
30
void