orig: total: 4 errors, 3 warnings, 352 lines checked patched:total: 0 errors, 1 warnings, 354 lines checked leftovers: WARNING: do not add new typedefs #60: FILE: safe_link.c:60: +typedef struct safelink {
Signed-off-by: Dushan Tcholich <dusanc@xxxxxxxxx> --- safe_link.c.orig 2007-10-25 16:20:00.000000000 +0200 +++ safe_link.c 2007-10-25 16:22:21.000000000 +0200 @@ -207,7 +207,7 @@ struct safe_link_context { * start iterating over all safe-links. */ static void safe_link_iter_begin(reiser4_tree * tree, - struct safe_link_context * ctx) + struct safe_link_context *ctx) { ctx->tree = tree; reiser4_key_init(&ctx->key); @@ -219,7 +219,7 @@ static void safe_link_iter_begin(reiser4 /* * return next safe-link. */ -static int safe_link_iter_next(struct safe_link_context * ctx) +static int safe_link_iter_next(struct safe_link_context *ctx) { int result; safelink_t sl; @@ -238,7 +238,7 @@ static int safe_link_iter_next(struct sa /* * check are there any more safe-links left in the tree. */ -static int safe_link_iter_finished(struct safe_link_context * ctx) +static int safe_link_iter_finished(struct safe_link_context *ctx) { return get_key_locality(&ctx->key) != safe_link_locality(ctx->tree); } @@ -246,7 +246,7 @@ static int safe_link_iter_finished(struc /* * finish safe-link iteration. */ -static void safe_link_iter_end(struct safe_link_context * ctx) +static void safe_link_iter_end(struct safe_link_context *ctx) { /* nothing special */ } @@ -294,10 +294,12 @@ static int process_safelink(struct super reiser4_iget_complete(inode); iput(inode); if (result == 0) { - result = safe_link_grab(reiser4_get_tree(super), BA_CAN_COMMIT); + result = safe_link_grab(reiser4_get_tree(super), + BA_CAN_COMMIT); if (result == 0) result = - safe_link_del(reiser4_get_tree(super), oid, link); + safe_link_del(reiser4_get_tree(super), oid, + link); safe_link_release(reiser4_get_tree(super)); /* * restart transaction: if there was large number of