reiser4.h cleanup
orig: total: 6 errors, 3 warnings, 269 lines checked
patched:total: 0 errors, 1 warnings, 270 lines checked leftovers:
WARNING: line over 80 characters
#83: FILE: reiser4.h:83:
+#define REISER4_NEW_EXTENT_FLAGS (COPI_LOAD_LEFT | COPI_LOAD_RIGHT | COPI_GO_LEFT)
Signed-off-by Dushan Tcholich <[email protected]>
reiser4.h renamed from reiser4.h.orig +8 -7
@@ -3,7 +3,7 @@/* definitions of common constants used by reiser4 */ -#if !defined( __REISER4_H__ ) +#if !defined(__REISER4_H__)#define __REISER4_H__#include <asm/param.h> /* for HZ */
@@ -171,11 +171,12 @@ extern const int REISER4_MAGIC_OFFSET; /*/ #define REISER4_USE_COLLISION_LIMIT (0) -/* If flush finds more than FLUSH_RELOCATE_THRESHOLD adjacent dirty leaf-level blocks it -will force them to be relocated. */ +/* If flush finds more than FLUSH_RELOCATE_THRESHOLD adjacent dirty leaf-level +blocks it will force them to be relocated. */ #define FLUSH_RELOCATE_THRESHOLD 64 -/* If flush finds can find a block allocation closer than at most FLUSH_RELOCATE_DISTANCE -from the preceder it will relocate to that position. */ +/* If flush finds can find a block allocation closer than at most +FLUSH_RELOCATE_DISTANCE from the preceder it will relocate to that position. +*/ #define FLUSH_RELOCATE_DISTANCE 64/* If we have written this much or more blocks before encountering busy jnode
@@ -222,9 +223,9 @@ extern const int REISER4_MAGIC_OFFSET; /#define REISER4_I reiser4_inode_data/* implication */ -#define ergo ( antecedent, consequent ) ( !( antecedent ) || ( consequent ) ) +#define ergo (antecedent, consequent) (!(antecedent) || (consequent))/* logical equivalence */ -#define equi ( p1, p2 ) ( ergo( ( p1 ), ( p2 ) ) && ergo( ( p2 ), ( p1 ) ) ) +#define equi (p1, p2) (ergo((p1), (p2)) && ergo((p2), (p1)))#define sizeof_array (x) ((int) (sizeof(x) / sizeof(x[0])))