diff options
Diffstat (limited to 'fs/nilfs2/segment.h')
| -rw-r--r-- | fs/nilfs2/segment.h | 16 | 
1 files changed, 5 insertions, 11 deletions
diff --git a/fs/nilfs2/segment.h b/fs/nilfs2/segment.h index cd8056e7cbe..38a1d001331 100644 --- a/fs/nilfs2/segment.h +++ b/fs/nilfs2/segment.h @@ -27,7 +27,7 @@  #include <linux/fs.h>  #include <linux/buffer_head.h>  #include <linux/nilfs2_fs.h> -#include "sb.h" +#include "nilfs.h"  struct nilfs_root; @@ -88,12 +88,10 @@ struct nilfs_segsum_pointer {  /**   * struct nilfs_sc_info - Segment constructor information   * @sc_super: Back pointer to super_block struct - * @sc_sbi: Back pointer to nilfs_sb_info struct   * @sc_root: root object of the current filesystem tree   * @sc_nblk_inc: Block count of current generation   * @sc_dirty_files: List of files to be written   * @sc_gc_inodes: List of GC inodes having blocks to be written - * @sc_copied_buffers: List of copied buffers (buffer heads) to freeze data   * @sc_freesegs: array of segment numbers to be freed   * @sc_nfreesegs: number of segments on @sc_freesegs   * @sc_dsync_inode: inode whose data pages are written for a sync operation @@ -131,14 +129,12 @@ struct nilfs_segsum_pointer {   */  struct nilfs_sc_info {  	struct super_block     *sc_super; -	struct nilfs_sb_info   *sc_sbi;  	struct nilfs_root      *sc_root;  	unsigned long		sc_nblk_inc;  	struct list_head	sc_dirty_files;  	struct list_head	sc_gc_inodes; -	struct list_head	sc_copied_buffers;  	__u64		       *sc_freesegs;  	size_t			sc_nfreesegs; @@ -235,18 +231,16 @@ extern void nilfs_flush_segment(struct super_block *, ino_t);  extern int nilfs_clean_segments(struct super_block *, struct nilfs_argv *,  				void **); -int nilfs_attach_segment_constructor(struct nilfs_sb_info *sbi, -				     struct nilfs_root *root); -extern void nilfs_detach_segment_constructor(struct nilfs_sb_info *); +int nilfs_attach_log_writer(struct super_block *sb, struct nilfs_root *root); +void nilfs_detach_log_writer(struct super_block *sb);  /* recovery.c */  extern int nilfs_read_super_root_block(struct the_nilfs *, sector_t,  				       struct buffer_head **, int);  extern int nilfs_search_super_root(struct the_nilfs *,  				   struct nilfs_recovery_info *); -extern int nilfs_salvage_orphan_logs(struct the_nilfs *, -				     struct nilfs_sb_info *, -				     struct nilfs_recovery_info *); +int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb, +			      struct nilfs_recovery_info *ri);  extern void nilfs_dispose_segment_list(struct list_head *);  #endif /* _NILFS_SEGMENT_H */  | 
