Searched refs:segbuf (Results 1 – 4 of 4) sorted by relevance
/fs/nilfs2/ |
D | segbuf.c | 39 static int nilfs_segbuf_write(struct nilfs_segment_buffer *segbuf, 41 static int nilfs_segbuf_wait(struct nilfs_segment_buffer *segbuf); 45 struct nilfs_segment_buffer *segbuf; in nilfs_segbuf_new() local 47 segbuf = kmem_cache_alloc(nilfs_segbuf_cachep, GFP_NOFS); in nilfs_segbuf_new() 48 if (unlikely(!segbuf)) in nilfs_segbuf_new() 51 segbuf->sb_super = sb; in nilfs_segbuf_new() 52 INIT_LIST_HEAD(&segbuf->sb_list); in nilfs_segbuf_new() 53 INIT_LIST_HEAD(&segbuf->sb_segsum_buffers); in nilfs_segbuf_new() 54 INIT_LIST_HEAD(&segbuf->sb_payload_buffers); in nilfs_segbuf_new() 55 segbuf->sb_super_root = NULL; in nilfs_segbuf_new() [all …]
|
D | segbuf.h | 96 #define NILFS_NEXT_SEGBUF(segbuf) NILFS_LIST_SEGBUF((segbuf)->sb_list.next) argument 97 #define NILFS_PREV_SEGBUF(segbuf) NILFS_LIST_SEGBUF((segbuf)->sb_list.prev) argument 100 #define NILFS_SEGBUF_IS_LAST(segbuf, head) ((segbuf)->sb_list.next == (head)) argument 119 void nilfs_segbuf_map_cont(struct nilfs_segment_buffer *segbuf, 130 static inline int nilfs_segbuf_simplex(struct nilfs_segment_buffer *segbuf) in nilfs_segbuf_simplex() argument 132 unsigned int flags = segbuf->sb_sum.flags; in nilfs_segbuf_simplex() 138 static inline int nilfs_segbuf_empty(struct nilfs_segment_buffer *segbuf) in nilfs_segbuf_empty() argument 140 return segbuf->sb_sum.nblocks == segbuf->sb_sum.nsumblk; in nilfs_segbuf_empty() 144 nilfs_segbuf_add_segsum_buffer(struct nilfs_segment_buffer *segbuf, in nilfs_segbuf_add_segsum_buffer() argument 147 list_add_tail(&bh->b_assoc_buffers, &segbuf->sb_segsum_buffers); in nilfs_segbuf_add_segsum_buffer() [all …]
|
D | segment.c | 406 struct nilfs_segment_buffer *segbuf = sci->sc_curseg; in nilfs_segctor_map_segsum_entry() local 413 &segbuf->sb_segsum_buffers)); in nilfs_segctor_map_segsum_entry() 427 struct nilfs_segment_buffer *segbuf = sci->sc_curseg; in nilfs_segctor_reset_segment_buffer() local 435 err = nilfs_segbuf_reset(segbuf, flags, sci->sc_seg_ctime, sci->sc_cno); in nilfs_segctor_reset_segment_buffer() 439 sumbh = NILFS_SEGBUF_FIRST_BH(&segbuf->sb_segsum_buffers); in nilfs_segctor_reset_segment_buffer() 440 sumbytes = segbuf->sb_sum.sumbytes; in nilfs_segctor_reset_segment_buffer() 461 struct nilfs_segment_buffer *segbuf = sci->sc_curseg; in nilfs_segctor_add_super_root() local 464 if (segbuf->sb_sum.nblocks >= segbuf->sb_rest_blocks) { in nilfs_segctor_add_super_root() 468 segbuf = sci->sc_curseg; in nilfs_segctor_add_super_root() 470 err = nilfs_segbuf_extend_payload(segbuf, &segbuf->sb_super_root); in nilfs_segctor_add_super_root() [all …]
|
D | Makefile | 5 the_nilfs.o segbuf.o segment.o cpfile.o sufile.o \
|