Home
last modified time | relevance | path

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

/Linux-v6.6/fs/nilfs2/
Dsufile.c47 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()
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()
74 nilfs_sufile_block_get_segment_usage(const struct inode *sufile, __u64 segnum, in nilfs_sufile_block_get_segment_usage() argument
78 nilfs_sufile_get_offset(sufile, segnum) * in nilfs_sufile_block_get_segment_usage()
89 nilfs_sufile_get_segment_usage_block(struct inode *sufile, __u64 segnum, in nilfs_sufile_get_segment_usage_block() argument
93 nilfs_sufile_get_blkoff(sufile, segnum), in nilfs_sufile_get_segment_usage_block()
98 __u64 segnum) in nilfs_sufile_delete_segment_usage_block() argument
101 nilfs_sufile_get_blkoff(sufile, segnum)); in nilfs_sufile_delete_segment_usage_block()
[all …]
Dsufile.h27 int nilfs_sufile_mark_dirty(struct inode *sufile, __u64 segnum);
28 int nilfs_sufile_set_segment_usage(struct inode *sufile, __u64 segnum,
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()
72 static inline int nilfs_sufile_free(struct inode *sufile, __u64 segnum) in nilfs_sufile_free() argument
74 return nilfs_sufile_update(sufile, segnum, 0, nilfs_sufile_do_free); in nilfs_sufile_free()
126 static inline int nilfs_sufile_set_error(struct inode *sufile, __u64 segnum) in nilfs_sufile_set_error() argument
128 return nilfs_sufile_update(sufile, segnum, 0, in nilfs_sufile_set_error()
Drecovery.c388 __u64 segnum; member
391 static int nilfs_segment_list_add(struct list_head *head, __u64 segnum) in nilfs_segment_list_add() argument
398 ent->segnum = segnum; in nilfs_segment_list_add()
422 __u64 segnum[4]; in nilfs_prepare_segment_for_recovery() local
426 segnum[0] = nilfs->ns_segnum; in nilfs_prepare_segment_for_recovery()
427 segnum[1] = nilfs->ns_nextnum; in nilfs_prepare_segment_for_recovery()
428 segnum[2] = ri->ri_segnum; in nilfs_prepare_segment_for_recovery()
429 segnum[3] = ri->ri_nextnum; in nilfs_prepare_segment_for_recovery()
435 err = nilfs_sufile_free(sufile, segnum[1]); in nilfs_prepare_segment_for_recovery()
440 err = nilfs_segment_list_add(head, segnum[i]); in nilfs_prepare_segment_for_recovery()
[all …]
Dthe_nilfs.h310 nilfs_get_segment_range(struct the_nilfs *nilfs, __u64 segnum, in nilfs_get_segment_range() argument
313 *seg_start = (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_range()
315 if (segnum == 0) in nilfs_get_segment_range()
320 nilfs_get_segment_start_blocknr(struct the_nilfs *nilfs, __u64 segnum) in nilfs_get_segment_start_blocknr() argument
322 return (segnum == 0) ? nilfs->ns_first_data_block : in nilfs_get_segment_start_blocknr()
323 (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_start_blocknr()
329 sector_t segnum = blocknr; in nilfs_get_segnum_of_block() local
331 sector_div(segnum, nilfs->ns_blocks_per_segment); in nilfs_get_segnum_of_block()
332 return segnum; in nilfs_get_segnum_of_block()
Dsegbuf.c60 void nilfs_segbuf_map(struct nilfs_segment_buffer *segbuf, __u64 segnum, in nilfs_segbuf_map() argument
63 segbuf->sb_segnum = segnum; in nilfs_segbuf_map()
64 nilfs_get_segment_range(nilfs, segnum, &segbuf->sb_fseg_start, in nilfs_segbuf_map()
Dsysfs.c506 __u64 segnum; in nilfs_segctor_current_last_full_seg_show() local
509 segnum = nilfs->ns_segnum; in nilfs_segctor_current_last_full_seg_show()
512 return sysfs_emit(buf, "%llu\n", segnum); in nilfs_segctor_current_last_full_seg_show()
/Linux-v6.6/include/trace/events/
Dnilfs2.h101 __u64 segnum,
104 TP_ARGS(sufile, segnum, cnt),
108 __field(__u64, segnum)
114 __entry->segnum = segnum;
120 __entry->segnum,
126 __u64 segnum),
128 TP_ARGS(sufile, segnum),
132 __field(__u64, segnum)
137 __entry->segnum = segnum;
142 __entry->segnum)
[all …]
/Linux-v6.6/drivers/net/arcnet/
Drfc1201.c496 out->segnum = 0; in prepare_tx()
521 out->segnum, out->numsegs, soft->sequence); in continue_tx()
527 if (!out->segnum) /* first packet; newsoft == soft */ in continue_tx()
530 newsoft->split_flag = out->segnum << 1; in continue_tx()
542 out->segnum++; in continue_tx()
543 if (out->segnum >= out->numsegs) in continue_tx()
Darcdevice.h231 segnum, /* segment being sent */ member