Searched refs:sufile (Results 1 – 5 of 5) sorted by relevance
/fs/nilfs2/ |
D | sufile.c | 35 static inline struct nilfs_sufile_info *NILFS_SUI(struct inode *sufile) in NILFS_SUI() argument 37 return (struct nilfs_sufile_info *)NILFS_MDT(sufile); in NILFS_SUI() 41 nilfs_sufile_segment_usages_per_block(const struct inode *sufile) in nilfs_sufile_segment_usages_per_block() argument 43 return NILFS_MDT(sufile)->mi_entries_per_block; in nilfs_sufile_segment_usages_per_block() 47 nilfs_sufile_get_blkoff(const struct inode *sufile, __u64 segnum) in nilfs_sufile_get_blkoff() argument 49 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_blkoff() 51 do_div(t, nilfs_sufile_segment_usages_per_block(sufile)); in nilfs_sufile_get_blkoff() 56 nilfs_sufile_get_offset(const struct inode *sufile, __u64 segnum) in nilfs_sufile_get_offset() argument 58 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_offset() 60 return do_div(t, nilfs_sufile_segment_usages_per_block(sufile)); in nilfs_sufile_get_offset() [all …]
|
D | sufile.h | 18 static inline unsigned long nilfs_sufile_get_nsegments(struct inode *sufile) in nilfs_sufile_get_nsegments() argument 20 return ((struct the_nilfs *)sufile->i_sb->s_fs_info)->ns_nsegments; in nilfs_sufile_get_nsegments() 23 unsigned long nilfs_sufile_get_ncleansegs(struct inode *sufile); 25 int nilfs_sufile_set_alloc_range(struct inode *sufile, __u64 start, __u64 end); 27 int nilfs_sufile_mark_dirty(struct inode *sufile, __u64 segnum); 28 int nilfs_sufile_set_segment_usage(struct inode *sufile, __u64 segnum, 52 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs); 55 int nilfs_sufile_trim_fs(struct inode *sufile, struct fstrim_range *range); 62 static inline int nilfs_sufile_scrap(struct inode *sufile, __u64 segnum) in nilfs_sufile_scrap() argument 64 return nilfs_sufile_update(sufile, segnum, 1, nilfs_sufile_do_scrap); in nilfs_sufile_scrap() [all …]
|
D | segment.c | 1380 struct inode *sufile = nilfs->ns_sufile; in nilfs_segctor_extend_segments() local 1392 err = nilfs_sufile_mark_dirty(sufile, prev->sb_nextnum); in nilfs_segctor_extend_segments() 1408 err = nilfs_sufile_alloc(sufile, &nextnextnum); in nilfs_segctor_extend_segments() 1425 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_segctor_extend_segments() 1436 struct inode *sufile = nilfs->ns_sufile; in nilfs_free_incomplete_logs() local 1441 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs() 1460 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs() 1466 nilfs_sufile_set_error(sufile, segbuf->sb_segnum); in nilfs_free_incomplete_logs() 1472 struct inode *sufile) in nilfs_segctor_update_segusage() argument 1481 ret = nilfs_sufile_set_segment_usage(sufile, segbuf->sb_segnum, in nilfs_segctor_update_segusage() [all …]
|
D | Makefile | 5 the_nilfs.o segbuf.o segment.o cpfile.o sufile.o \
|
D | recovery.c | 421 struct inode *sufile = nilfs->ns_sufile; in nilfs_prepare_segment_for_recovery() local 435 err = nilfs_sufile_free(sufile, segnum[1]); in nilfs_prepare_segment_for_recovery() 451 err = nilfs_sufile_scrap(sufile, ent->segnum); in nilfs_prepare_segment_for_recovery() 460 err = nilfs_sufile_alloc(sufile, &segnum[0]); in nilfs_prepare_segment_for_recovery()
|