Home
last modified time | relevance | path

Searched refs:sufile (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/fs/nilfs2/
Dsufile.c39 static inline struct nilfs_sufile_info *NILFS_SUI(struct inode *sufile) in NILFS_SUI() argument
41 return (struct nilfs_sufile_info *)NILFS_MDT(sufile); in NILFS_SUI()
45 nilfs_sufile_segment_usages_per_block(const struct inode *sufile) in nilfs_sufile_segment_usages_per_block() argument
47 return NILFS_MDT(sufile)->mi_entries_per_block; in nilfs_sufile_segment_usages_per_block()
51 nilfs_sufile_get_blkoff(const struct inode *sufile, __u64 segnum) in nilfs_sufile_get_blkoff() argument
53 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_blkoff()
54 do_div(t, nilfs_sufile_segment_usages_per_block(sufile)); in nilfs_sufile_get_blkoff()
59 nilfs_sufile_get_offset(const struct inode *sufile, __u64 segnum) in nilfs_sufile_get_offset() argument
61 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_offset()
62 return do_div(t, nilfs_sufile_segment_usages_per_block(sufile)); in nilfs_sufile_get_offset()
[all …]
Dsufile.h32 static inline unsigned long nilfs_sufile_get_nsegments(struct inode *sufile) in nilfs_sufile_get_nsegments() argument
34 return NILFS_I_NILFS(sufile)->ns_nsegments; in nilfs_sufile_get_nsegments()
37 unsigned long nilfs_sufile_get_ncleansegs(struct inode *sufile);
40 int nilfs_sufile_mark_dirty(struct inode *sufile, __u64 segnum);
41 int nilfs_sufile_set_segment_usage(struct inode *sufile, __u64 segnum,
72 static inline int nilfs_sufile_scrap(struct inode *sufile, __u64 segnum) in nilfs_sufile_scrap() argument
74 return nilfs_sufile_update(sufile, segnum, 1, nilfs_sufile_do_scrap); in nilfs_sufile_scrap()
82 static inline int nilfs_sufile_free(struct inode *sufile, __u64 segnum) in nilfs_sufile_free() argument
84 return nilfs_sufile_update(sufile, segnum, 0, nilfs_sufile_do_free); in nilfs_sufile_free()
94 static inline int nilfs_sufile_freev(struct inode *sufile, __u64 *segnumv, in nilfs_sufile_freev() argument
[all …]
DMakefile4 the_nilfs.o segbuf.o segment.o cpfile.o sufile.o \
Dsegment.c1270 struct inode *sufile = nilfs->ns_sufile; in nilfs_segctor_extend_segments() local
1282 err = nilfs_sufile_mark_dirty(sufile, prev->sb_nextnum); in nilfs_segctor_extend_segments()
1298 err = nilfs_sufile_alloc(sufile, &nextnextnum); in nilfs_segctor_extend_segments()
1315 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_segctor_extend_segments()
1326 struct inode *sufile = nilfs->ns_sufile; in nilfs_free_incomplete_logs() local
1331 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs()
1348 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs()
1354 nilfs_sufile_set_error(sufile, segbuf->sb_segnum); in nilfs_free_incomplete_logs()
1360 struct inode *sufile) in nilfs_segctor_update_segusage() argument
1369 ret = nilfs_sufile_set_segment_usage(sufile, segbuf->sb_segnum, in nilfs_segctor_update_segusage()
[all …]
Drecovery.c433 struct inode *sufile = nilfs->ns_sufile; in nilfs_prepare_segment_for_recovery() local
447 err = nilfs_sufile_free(sufile, segnum[1]); in nilfs_prepare_segment_for_recovery()
463 err = nilfs_sufile_scrap(sufile, ent->segnum); in nilfs_prepare_segment_for_recovery()
472 err = nilfs_sufile_alloc(sufile, &segnum[0]); in nilfs_prepare_segment_for_recovery()
/linux-2.6.39/Documentation/filesystems/
Dnilfs2.txt169 3) Segment usage file (sufile) -- Stores allocation state of segments
177 | Summary | regular file | file | ... | ifile | cpfile | sufile | DAT |SR|
188 three special inodes, inodes for the DAT, cpfile, and sufile. Inodes
199 |-- sufile