fsdata.c cleanup
orig: total: 5 errors, 0 warnings, 808 lines checked
patched:total: 3 errors, 0 warnings, 808 lines checked
1 error is bogus:
ERROR: need consistent spacing around '*' (ctx:WxB) #24: FILE: fsdata.c:24:
+static void kill_cursor(dir_cursor *);
^and 2 are:
ERROR: do not initialise statics to 0 or NULL
#16: FILE: fsdata.c:16:
+static unsigned long d_cursor_unused = 0;
ERROR: do not initialise statics to 0 or NULL
#302: FILE: fsdata.c:302:
+static __u32 cid_counter = 0;
Signed-off-by Dushan Tcholich <[email protected]>
fsdata.c renamed from fsdata.c.orig +2 -2
@@ -100,7 +100,7 @@ void reiser4_done_d_cursor(void)#define D_CURSOR_TABLE_SIZE (256)static inline unsigned long -d_cursor_hash (d_cursor_hash_table *table,const struct d_cursor_key *key) +d_cursor_hash (d_cursor_hash_table * table,const struct d_cursor_key *key) {assert ("nikita-3555" ,IS_POW (D_CURSOR_TABLE_SIZE ));return (key->oid + key->cid) & (D_CURSOR_TABLE_SIZE -1 );
@@ -243,7 +243,7 @@ static inline struct d_cursor_info *d_in/* * lookup d_cursor in the per-super-block radix tree. */ -static inline dir_cursor *lookup (struct d_cursor_info * info, +static inline dir_cursor *lookup (struct d_cursor_info *info,unsigned long index) {return (dir_cursor *)radix_tree_lookup (&info->tree, index);