summaryrefslogtreecommitdiffstats
path: root/libdm/mm
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-10-26 08:59:05 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-10-26 08:59:05 +0000
commit84cc478cc4eb50cdb2e901313c1a36e4c01249b4 (patch)
tree50223be01321d0003e284f8057c3d17a4c87aa15 /libdm/mm
parent3a32d104bdef272068c649aa5e66328705cf3eaf (diff)
downloadlvm2-84cc478cc4eb50cdb2e901313c1a36e4c01249b4.tar.gz
lvm2-84cc478cc4eb50cdb2e901313c1a36e4c01249b4.tar.xz
lvm2-84cc478cc4eb50cdb2e901313c1a36e4c01249b4.zip
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.
Diffstat (limited to 'libdm/mm')
-rw-r--r--libdm/mm/pool-fast.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdm/mm/pool-fast.c b/libdm/mm/pool-fast.c
index d9030cfa..ebd982e6 100644
--- a/libdm/mm/pool-fast.c
+++ b/libdm/mm/pool-fast.c
@@ -33,8 +33,8 @@ struct dm_pool {
unsigned object_alignment;
};
-void _align_chunk(struct chunk *c, unsigned alignment);
-struct chunk *_new_chunk(struct dm_pool *p, size_t s);
+static void _align_chunk(struct chunk *c, unsigned alignment);
+static struct chunk *_new_chunk(struct dm_pool *p, size_t s);
static void _free_chunk(struct chunk *c);
/* 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;
}
-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));
}
-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;