Searched refs:sufile (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.6/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 | Makefile | 5 the_nilfs.o segbuf.o segment.o cpfile.o sufile.o \
|
D | segment.c | 1377 struct inode *sufile = nilfs->ns_sufile; in nilfs_segctor_extend_segments() local 1389 err = nilfs_sufile_mark_dirty(sufile, prev->sb_nextnum); in nilfs_segctor_extend_segments() 1405 err = nilfs_sufile_alloc(sufile, &nextnextnum); in nilfs_segctor_extend_segments() 1422 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_segctor_extend_segments() 1433 struct inode *sufile = nilfs->ns_sufile; in nilfs_free_incomplete_logs() local 1438 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs() 1457 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs() 1463 nilfs_sufile_set_error(sufile, segbuf->sb_segnum); in nilfs_free_incomplete_logs() 1469 struct inode *sufile) in nilfs_segctor_update_segusage() argument 1478 ret = nilfs_sufile_set_segment_usage(sufile, segbuf->sb_segnum, in nilfs_segctor_update_segusage() [all …]
|
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()
|
/Linux-v6.6/include/trace/events/ |
D | nilfs2.h | 100 TP_PROTO(struct inode *sufile, 104 TP_ARGS(sufile, segnum, cnt), 107 __field(struct inode *, sufile) 113 __entry->sufile = sufile; 119 __entry->sufile, 125 TP_PROTO(struct inode *sufile, 128 TP_ARGS(sufile, segnum), 131 __field(struct inode *, sufile) 136 __entry->sufile = sufile; 141 __entry->sufile, [all …]
|
/Linux-v6.6/Documentation/filesystems/ |
D | nilfs2.rst | 240 3) Segment usage file (sufile) -- Stores allocation state of segments 248 | Summary | regular file | file | ... | ifile | cpfile | sufile | DAT |SR| 259 three special inodes, inodes for the DAT, cpfile, and sufile. Inodes 270 |-- sufile
|