Home
last modified time | relevance | path

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

/fs/nilfs2/
Dsufile.c47 static inline struct nilfs_sufile_info *NILFS_SUI(struct inode *sufile) in NILFS_SUI() argument
49 return (struct nilfs_sufile_info *)NILFS_MDT(sufile); in NILFS_SUI()
53 nilfs_sufile_segment_usages_per_block(const struct inode *sufile) in nilfs_sufile_segment_usages_per_block() argument
55 return NILFS_MDT(sufile)->mi_entries_per_block; in nilfs_sufile_segment_usages_per_block()
59 nilfs_sufile_get_blkoff(const struct inode *sufile, __u64 segnum) in nilfs_sufile_get_blkoff() argument
61 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_blkoff()
62 do_div(t, nilfs_sufile_segment_usages_per_block(sufile)); in nilfs_sufile_get_blkoff()
67 nilfs_sufile_get_offset(const struct inode *sufile, __u64 segnum) in nilfs_sufile_get_offset() argument
69 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_offset()
70 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 ((struct the_nilfs *)sufile->i_sb->s_fs_info)->ns_nsegments; in nilfs_sufile_get_nsegments()
37 unsigned long nilfs_sufile_get_ncleansegs(struct inode *sufile);
39 int nilfs_sufile_set_alloc_range(struct inode *sufile, __u64 start, __u64 end);
41 int nilfs_sufile_mark_dirty(struct inode *sufile, __u64 segnum);
42 int nilfs_sufile_set_segment_usage(struct inode *sufile, __u64 segnum,
65 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs);
74 static inline int nilfs_sufile_scrap(struct inode *sufile, __u64 segnum) in nilfs_sufile_scrap() argument
76 return nilfs_sufile_update(sufile, segnum, 1, nilfs_sufile_do_scrap); in nilfs_sufile_scrap()
84 static inline int nilfs_sufile_free(struct inode *sufile, __u64 segnum) in nilfs_sufile_free() argument
[all …]
Dsegment.c1273 struct inode *sufile = nilfs->ns_sufile; in nilfs_segctor_extend_segments() local
1285 err = nilfs_sufile_mark_dirty(sufile, prev->sb_nextnum); in nilfs_segctor_extend_segments()
1301 err = nilfs_sufile_alloc(sufile, &nextnextnum); in nilfs_segctor_extend_segments()
1318 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_segctor_extend_segments()
1329 struct inode *sufile = nilfs->ns_sufile; in nilfs_free_incomplete_logs() local
1334 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs()
1351 ret = nilfs_sufile_free(sufile, segbuf->sb_nextnum); in nilfs_free_incomplete_logs()
1357 nilfs_sufile_set_error(sufile, segbuf->sb_segnum); in nilfs_free_incomplete_logs()
1363 struct inode *sufile) in nilfs_segctor_update_segusage() argument
1372 ret = nilfs_sufile_set_segment_usage(sufile, segbuf->sb_segnum, in nilfs_segctor_update_segusage()
[all …]
DMakefile4 the_nilfs.o segbuf.o segment.o cpfile.o sufile.o \
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()