mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Use static indentifier for internal functions
Functions _align_chunk() and _new_chunk() are used only internally inside pool-fast.c - so keep them static inside this object file.
This commit is contained in:
parent
3a32d104bd
commit
84cc478cc4
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.76
|
Version 2.02.76
|
||||||
===================================
|
===================================
|
||||||
|
Use static for internal _align_chunk() and _new_chunk() from pool-fast.c.
|
||||||
Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
|
Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
|
||||||
Add lvm2app functions to query any pv, vg, or lv property / report field.
|
Add lvm2app functions to query any pv, vg, or lv property / report field.
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ struct dm_pool {
|
|||||||
unsigned object_alignment;
|
unsigned object_alignment;
|
||||||
};
|
};
|
||||||
|
|
||||||
void _align_chunk(struct chunk *c, unsigned alignment);
|
static void _align_chunk(struct chunk *c, unsigned alignment);
|
||||||
struct chunk *_new_chunk(struct dm_pool *p, size_t s);
|
static struct chunk *_new_chunk(struct dm_pool *p, size_t s);
|
||||||
static void _free_chunk(struct chunk *c);
|
static void _free_chunk(struct chunk *c);
|
||||||
|
|
||||||
/* by default things come out aligned for doubles */
|
/* by default things come out aligned for doubles */
|
||||||
@ -240,12 +240,12 @@ void dm_pool_abandon_object(struct dm_pool *p)
|
|||||||
p->object_alignment = DEFAULT_ALIGNMENT;
|
p->object_alignment = DEFAULT_ALIGNMENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _align_chunk(struct chunk *c, unsigned alignment)
|
static void _align_chunk(struct chunk *c, unsigned alignment)
|
||||||
{
|
{
|
||||||
c->begin += alignment - ((unsigned long) c->begin & (alignment - 1));
|
c->begin += alignment - ((unsigned long) c->begin & (alignment - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chunk *_new_chunk(struct dm_pool *p, size_t s)
|
static struct chunk *_new_chunk(struct dm_pool *p, size_t s)
|
||||||
{
|
{
|
||||||
struct chunk *c;
|
struct chunk *c;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user