diff options
author | Artem B. Bityutskiy <dedekind@infradead.org> | 2005-07-27 10:46:14 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-11-06 11:50:45 -0500 |
commit | f97117d15361b3a6aeaf9e347a287ef3f54b58f9 (patch) | |
tree | 614ff5f6fa693e1e475430eff9687e40b96b8555 /fs/jffs2/nodelist.h | |
parent | f538c96ba2a3fdf7744ecf9fdffac14b1ec4be32 (diff) |
[JFFS2] Move scattered function into related files
Move functions to read inodes into readinode.c
Move functions to handle fragtree and dentry lists into nodelist.[ch]
Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/nodelist.h')
-rw-r--r-- | fs/jffs2/nodelist.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/jffs2/nodelist.h b/fs/jffs2/nodelist.h index 0058e395641b..452fc81f391a 100644 --- a/fs/jffs2/nodelist.h +++ b/fs/jffs2/nodelist.h | |||
@@ -7,7 +7,7 @@ | |||
7 | * | 7 | * |
8 | * For licensing information, see the file 'LICENCE' in this directory. | 8 | * For licensing information, see the file 'LICENCE' in this directory. |
9 | * | 9 | * |
10 | * $Id: nodelist.h,v 1.134 2005/07/24 15:29:56 dedekind Exp $ | 10 | * $Id: nodelist.h,v 1.135 2005/07/27 14:46:11 dedekind Exp $ |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
@@ -297,10 +297,6 @@ static inline struct jffs2_node_frag *frag_last(struct rb_root *root) | |||
297 | 297 | ||
298 | /* nodelist.c */ | 298 | /* nodelist.c */ |
299 | void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full_dirent **list); | 299 | void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full_dirent **list); |
300 | int jffs2_get_inode_nodes(struct jffs2_sb_info *c, struct jffs2_inode_info *f, | ||
301 | struct rb_root *tnp, struct jffs2_full_dirent **fdp, | ||
302 | uint32_t *highest_version, uint32_t *latest_mctime, | ||
303 | uint32_t *mctime_ver); | ||
304 | void jffs2_set_inocache_state(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, int state); | 300 | void jffs2_set_inocache_state(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, int state); |
305 | struct jffs2_inode_cache *jffs2_get_ino_cache(struct jffs2_sb_info *c, uint32_t ino); | 301 | struct jffs2_inode_cache *jffs2_get_ino_cache(struct jffs2_sb_info *c, uint32_t ino); |
306 | void jffs2_add_ino_cache (struct jffs2_sb_info *c, struct jffs2_inode_cache *new); | 302 | void jffs2_add_ino_cache (struct jffs2_sb_info *c, struct jffs2_inode_cache *new); |
@@ -309,10 +305,11 @@ void jffs2_free_ino_caches(struct jffs2_sb_info *c); | |||
309 | void jffs2_free_raw_node_refs(struct jffs2_sb_info *c); | 305 | void jffs2_free_raw_node_refs(struct jffs2_sb_info *c); |
310 | struct jffs2_node_frag *jffs2_lookup_node_frag(struct rb_root *fragtree, uint32_t offset); | 306 | struct jffs2_node_frag *jffs2_lookup_node_frag(struct rb_root *fragtree, uint32_t offset); |
311 | void jffs2_kill_fragtree(struct rb_root *root, struct jffs2_sb_info *c_delete); | 307 | void jffs2_kill_fragtree(struct rb_root *root, struct jffs2_sb_info *c_delete); |
312 | void jffs2_fragtree_insert(struct jffs2_node_frag *newfrag, struct jffs2_node_frag *base); | ||
313 | struct rb_node *rb_next(struct rb_node *); | 308 | struct rb_node *rb_next(struct rb_node *); |
314 | struct rb_node *rb_prev(struct rb_node *); | 309 | struct rb_node *rb_prev(struct rb_node *); |
315 | void rb_replace_node(struct rb_node *victim, struct rb_node *new, struct rb_root *root); | 310 | void rb_replace_node(struct rb_node *victim, struct rb_node *new, struct rb_root *root); |
311 | void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, struct jffs2_node_frag *this); | ||
312 | int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn); | ||
316 | 313 | ||
317 | /* nodemgmt.c */ | 314 | /* nodemgmt.c */ |
318 | int jffs2_thread_should_wake(struct jffs2_sb_info *c); | 315 | int jffs2_thread_should_wake(struct jffs2_sb_info *c); |
@@ -337,7 +334,6 @@ int jffs2_do_link (struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint | |||
337 | 334 | ||
338 | /* readinode.c */ | 335 | /* readinode.c */ |
339 | void jffs2_truncate_fragtree (struct jffs2_sb_info *c, struct rb_root *list, uint32_t size); | 336 | void jffs2_truncate_fragtree (struct jffs2_sb_info *c, struct rb_root *list, uint32_t size); |
340 | int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn); | ||
341 | int jffs2_do_read_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, | 337 | int jffs2_do_read_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, |
342 | uint32_t ino, struct jffs2_raw_inode *latest_node); | 338 | uint32_t ino, struct jffs2_raw_inode *latest_node); |
343 | int jffs2_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); | 339 | int jffs2_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); |