Home
last modified time | relevance | path

Searched refs:segbuf (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/fs/nilfs2/
Dsegbuf.c30 static int nilfs_segbuf_write(struct nilfs_segment_buffer *segbuf,
32 static int nilfs_segbuf_wait(struct nilfs_segment_buffer *segbuf);
36 struct nilfs_segment_buffer *segbuf; in nilfs_segbuf_new() local
38 segbuf = kmem_cache_alloc(nilfs_segbuf_cachep, GFP_NOFS); in nilfs_segbuf_new()
39 if (unlikely(!segbuf)) in nilfs_segbuf_new()
42 segbuf->sb_super = sb; in nilfs_segbuf_new()
43 INIT_LIST_HEAD(&segbuf->sb_list); in nilfs_segbuf_new()
44 INIT_LIST_HEAD(&segbuf->sb_segsum_buffers); in nilfs_segbuf_new()
45 INIT_LIST_HEAD(&segbuf->sb_payload_buffers); in nilfs_segbuf_new()
46 segbuf->sb_super_root = NULL; in nilfs_segbuf_new()
[all …]
Dsegbuf.h87 #define NILFS_NEXT_SEGBUF(segbuf) NILFS_LIST_SEGBUF((segbuf)->sb_list.next) argument
88 #define NILFS_PREV_SEGBUF(segbuf) NILFS_LIST_SEGBUF((segbuf)->sb_list.prev) argument
91 #define NILFS_SEGBUF_IS_LAST(segbuf, head) ((segbuf)->sb_list.next == (head)) argument
110 void nilfs_segbuf_map_cont(struct nilfs_segment_buffer *segbuf,
121 static inline int nilfs_segbuf_simplex(struct nilfs_segment_buffer *segbuf) in nilfs_segbuf_simplex() argument
123 unsigned int flags = segbuf->sb_sum.flags; in nilfs_segbuf_simplex()
129 static inline int nilfs_segbuf_empty(struct nilfs_segment_buffer *segbuf) in nilfs_segbuf_empty() argument
131 return segbuf->sb_sum.nblocks == segbuf->sb_sum.nsumblk; in nilfs_segbuf_empty()
135 nilfs_segbuf_add_segsum_buffer(struct nilfs_segment_buffer *segbuf, in nilfs_segbuf_add_segsum_buffer() argument
138 list_add_tail(&bh->b_assoc_buffers, &segbuf->sb_segsum_buffers); in nilfs_segbuf_add_segsum_buffer()
[all …]
Dsegment.c392 struct nilfs_segment_buffer *segbuf = sci->sc_curseg; in nilfs_segctor_map_segsum_entry() local
399 &segbuf->sb_segsum_buffers)); in nilfs_segctor_map_segsum_entry()
413 struct nilfs_segment_buffer *segbuf = sci->sc_curseg; in nilfs_segctor_reset_segment_buffer() local
421 err = nilfs_segbuf_reset(segbuf, flags, sci->sc_seg_ctime, sci->sc_cno); in nilfs_segctor_reset_segment_buffer()
425 sumbh = NILFS_SEGBUF_FIRST_BH(&segbuf->sb_segsum_buffers); in nilfs_segctor_reset_segment_buffer()
426 sumbytes = segbuf->sb_sum.sumbytes; in nilfs_segctor_reset_segment_buffer()
465 struct nilfs_segment_buffer *segbuf = sci->sc_curseg; in nilfs_segctor_add_super_root() local
468 if (segbuf->sb_sum.nblocks >= segbuf->sb_rest_blocks) { in nilfs_segctor_add_super_root()
472 segbuf = sci->sc_curseg; in nilfs_segctor_add_super_root()
474 err = nilfs_segbuf_extend_payload(segbuf, &segbuf->sb_super_root); in nilfs_segctor_add_super_root()
[all …]
DMakefile5 the_nilfs.o segbuf.o segment.o cpfile.o sufile.o \