pool.c cleanup
orig: total: 9 errors, 0 warnings, 231 lines checked
patched:Your patch has no obvious style problems and is ready for submission.
Signed-off-by Dushan Tcholich <[email protected]>
pool.c renamed from pool.c.orig +9 -9
@@ -51,7 +51,7 @@#include <linux/err.h> /* initialize new pool object @h */ -static void reiser4_init_pool_obj (struct reiser4_pool_header * h) +static void reiser4_init_pool_obj (struct reiser4_pool_header *h) {INIT_LIST_HEAD (&h->usage_linkage);INIT_LIST_HEAD (&h->level_linkage);
@@ -59,10 +59,10 @@ static void reiser4_init_pool_obj(struct }/* initialize new pool */ -void reiser4_init_pool (struct reiser4_pool * pool/* pool to initialize */ , +void reiser4_init_pool (struct reiser4_pool *pool/* pool to initialize */ ,size_t obj_size/* size of objects in @pool */ ,int num_of_objs/* number of preallocated objects */ , -char *data/* area for preallocated objects */ ) +char *data/* area for preallocated objects */ ) {struct reiser4_pool_header *h;int i;
@@ -93,7 +93,7 @@ void reiser4_init_pool(struct reiser4_poallocated objects. */ -void reiser4_done_pool(struct reiser4_pool * pool UNUSED_ARG) +void reiser4_done_pool(struct reiser4_pool *pool UNUSED_ARG) { }
@@ -103,7 +103,7 @@ void reiser4_done_pool(struct reiser4_poallocation. */ -static void *reiser4_pool_alloc (struct reiser4_pool * pool) +static void *reiser4_pool_alloc (struct reiser4_pool *pool) {struct reiser4_pool_header *result;
@@ -138,8 +138,8 @@ static void *reiser4_pool_alloc(struct r }/* return object back to the pool */ -void reiser4_pool_free (struct reiser4_pool * pool, -struct reiser4_pool_header * h) +void reiser4_pool_free (struct reiser4_pool *pool, +struct reiser4_pool_header *h) {assert ("nikita-961" , h !=NULL );assert ("nikita-962" , pool !=NULL );
@@ -182,10 +182,10 @@ void reiser4_pool_free(struct reiser4_po@list - where to add object; @reference - after (or before) which existing object to add */ -struct reiser4_pool_header *reiser4_add_obj (struct reiser4_pool * pool, +struct reiser4_pool_header *reiser4_add_obj (struct reiser4_pool *pool,struct list_head *list,pool_ordering order, -struct reiser4_pool_header * reference) +struct reiser4_pool_header *reference) {struct reiser4_pool_header *result;