Home
last modified time | relevance | path

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

/fs/nilfs2/
Dsufile.c59 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()
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()
84 nilfs_sufile_block_get_segment_usage(const struct inode *sufile, __u64 segnum, in nilfs_sufile_block_get_segment_usage() argument
88 nilfs_sufile_get_offset(sufile, segnum) * in nilfs_sufile_block_get_segment_usage()
99 nilfs_sufile_get_segment_usage_block(struct inode *sufile, __u64 segnum, in nilfs_sufile_get_segment_usage_block() argument
103 nilfs_sufile_get_blkoff(sufile, segnum), in nilfs_sufile_get_segment_usage_block()
108 __u64 segnum) in nilfs_sufile_delete_segment_usage_block() argument
111 nilfs_sufile_get_blkoff(sufile, segnum)); in nilfs_sufile_delete_segment_usage_block()
[all …]
Drecovery.c400 __u64 segnum; member
403 static int nilfs_segment_list_add(struct list_head *head, __u64 segnum) in nilfs_segment_list_add() argument
410 ent->segnum = segnum; in nilfs_segment_list_add()
434 __u64 segnum[4]; in nilfs_prepare_segment_for_recovery() local
438 segnum[0] = nilfs->ns_segnum; in nilfs_prepare_segment_for_recovery()
439 segnum[1] = nilfs->ns_nextnum; in nilfs_prepare_segment_for_recovery()
440 segnum[2] = ri->ri_segnum; in nilfs_prepare_segment_for_recovery()
441 segnum[3] = ri->ri_nextnum; in nilfs_prepare_segment_for_recovery()
447 err = nilfs_sufile_free(sufile, segnum[1]); in nilfs_prepare_segment_for_recovery()
452 err = nilfs_segment_list_add(head, segnum[i]); in nilfs_prepare_segment_for_recovery()
[all …]
Dsufile.h41 int nilfs_sufile_mark_dirty(struct inode *sufile, __u64 segnum);
42 int nilfs_sufile_set_segment_usage(struct inode *sufile, __u64 segnum,
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
86 return nilfs_sufile_update(sufile, segnum, 0, nilfs_sufile_do_free); in nilfs_sufile_free()
138 static inline int nilfs_sufile_set_error(struct inode *sufile, __u64 segnum) in nilfs_sufile_set_error() argument
140 return nilfs_sufile_update(sufile, segnum, 0, in nilfs_sufile_set_error()
Dthe_nilfs.h300 nilfs_get_segment_range(struct the_nilfs *nilfs, __u64 segnum, in nilfs_get_segment_range() argument
303 *seg_start = (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_range()
305 if (segnum == 0) in nilfs_get_segment_range()
310 nilfs_get_segment_start_blocknr(struct the_nilfs *nilfs, __u64 segnum) in nilfs_get_segment_start_blocknr() argument
312 return (segnum == 0) ? nilfs->ns_first_data_block : in nilfs_get_segment_start_blocknr()
313 (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_start_blocknr()
319 sector_t segnum = blocknr; in nilfs_get_segnum_of_block() local
321 sector_div(segnum, nilfs->ns_blocks_per_segment); in nilfs_get_segnum_of_block()
322 return segnum; in nilfs_get_segnum_of_block()
Dsegbuf.c73 void nilfs_segbuf_map(struct nilfs_segment_buffer *segbuf, __u64 segnum, in nilfs_segbuf_map() argument
76 segbuf->sb_segnum = segnum; in nilfs_segbuf_map()
77 nilfs_get_segment_range(nilfs, segnum, &segbuf->sb_fseg_start, in nilfs_segbuf_map()