Lines Matching refs:super_block

116 	struct super_block *a_sb;
151 struct page *(*find_first_sb)(struct super_block *sb, u64 *ofs);
152 struct page *(*find_last_sb)(struct super_block *sb, u64 *ofs);
153 int (*write_sb)(struct super_block *sb, struct page *page);
155 void (*writeseg)(struct super_block *sb, u64 ofs, size_t len);
156 int (*erase)(struct super_block *sb, loff_t ofs, size_t len,
158 int (*can_write_buf)(struct super_block *sb, u64 ofs);
159 void (*sync)(struct super_block *sb);
297 struct super_block *sb;
311 typedef int write_alias_t(struct super_block *sb, u64 ino, u64 bix,
315 void (*free_block)(struct super_block *sb, struct logfs_block*block);
316 int (*write_alias)(struct super_block *sb,
501 int logfs_replay_journal(struct super_block *sb);
512 u32 get_best_cand(struct super_block *sb, struct candidate_list *list, u32 *ec);
513 void logfs_gc_pass(struct super_block *sb);
514 int logfs_check_areas(struct super_block *sb);
515 int logfs_init_gc(struct super_block *sb);
516 void logfs_cleanup_gc(struct super_block *sb);
520 struct inode *logfs_iget(struct super_block *sb, ino_t ino);
521 struct inode *logfs_safe_iget(struct super_block *sb, ino_t ino, int *cookie);
524 struct inode *logfs_new_meta_inode(struct super_block *sb, u64 ino);
525 struct inode *logfs_read_meta_inode(struct super_block *sb, u64 ino);
535 void logfs_write_anchor(struct super_block *sb);
536 int logfs_init_journal(struct super_block *sb);
537 void logfs_cleanup_journal(struct super_block *sb);
538 int write_alias_journal(struct super_block *sb, u64 ino, u64 bix,
540 void do_logfs_journal_wl_pass(struct super_block *sb);
553 int logfs_is_valid_block(struct super_block *sb, u64 ofs, u64 ino, u64 bix,
558 int logfs_open_segfile(struct super_block *sb);
559 int logfs_init_rw(struct super_block *sb);
560 void logfs_cleanup_rw(struct super_block *sb);
564 int logfs_write_obj_aliases_pagecache(struct super_block *sb);
565 void logfs_get_segment_entry(struct super_block *sb, u32 segno,
567 void logfs_set_segment_used(struct super_block *sb, u64 ofs, int increment);
568 void logfs_set_segment_erased(struct super_block *sb, u32 segno, u32 ec,
570 void logfs_set_segment_reserved(struct super_block *sb, u32 segno);
571 void logfs_set_segment_unreserved(struct super_block *sb, u32 segno, u32 ec);
572 struct logfs_block *__alloc_block(struct super_block *sb,
574 void __free_block(struct super_block *sb, struct logfs_block *block);
580 void logfs_get_wblocks(struct super_block *sb, struct page *page, int lock);
581 void logfs_put_wblocks(struct super_block *sb, struct page *page, int lock);
585 int logfs_erase_segment(struct super_block *sb, u32 ofs, int ensure_erase);
586 int wbuf_read(struct super_block *sb, u64 ofs, size_t len, void *buf);
592 int logfs_load_object_aliases(struct super_block *sb,
595 int logfs_init_mapping(struct super_block *sb);
597 void logfs_sync_segments(struct super_block *sb);
598 void freeseg(struct super_block *sb, u32 segno);
599 void free_areas(struct super_block *sb);
602 int logfs_init_areas(struct super_block *sb);
603 void logfs_cleanup_areas(struct super_block *sb);
623 void logfs_crash_dump(struct super_block *sb);
626 int logfs_write_sb(struct super_block *sb);
628 static inline struct logfs_super *logfs_super(struct super_block *sb) in logfs_super()
638 static inline void logfs_set_ro(struct super_block *sb) in logfs_set_ro()
644 struct super_block *__sb = sb; \
663 static inline pgoff_t logfs_index(struct super_block *sb, u64 pos) in logfs_index()
668 static inline u64 dev_ofs(struct super_block *sb, u32 segno, u32 ofs) in dev_ofs()
673 static inline u32 seg_no(struct super_block *sb, u64 ofs) in seg_no()
678 static inline u32 seg_ofs(struct super_block *sb, u64 ofs) in seg_ofs()
683 static inline u64 seg_align(struct super_block *sb, u64 ofs) in seg_align()
713 static inline int logfs_block_shift(struct super_block *sb, level_t level) in logfs_block_shift()
719 static inline u64 logfs_block_mask(struct super_block *sb, level_t level) in logfs_block_mask()
724 static inline struct logfs_area *get_area(struct super_block *sb, in get_area()