Lines Matching refs:se
27 #define SE_PAGETYPE(se) ((IS_NODESEG((se)->type) ? NODE : DATA)) argument
357 struct seg_entry *se = get_seg_entry(sbi, start_segno); in get_ckpt_valid_blocks() local
359 blocks += se->ckpt_valid_blocks; in get_ckpt_valid_blocks()
366 static inline void seg_info_from_raw_sit(struct seg_entry *se, in seg_info_from_raw_sit() argument
369 se->valid_blocks = GET_SIT_VBLOCKS(rs); in seg_info_from_raw_sit()
370 se->ckpt_valid_blocks = GET_SIT_VBLOCKS(rs); in seg_info_from_raw_sit()
371 memcpy(se->cur_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
372 memcpy(se->ckpt_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
374 memcpy(se->cur_valid_map_mir, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
376 se->type = GET_SIT_TYPE(rs); in seg_info_from_raw_sit()
377 se->mtime = le64_to_cpu(rs->mtime); in seg_info_from_raw_sit()
380 static inline void __seg_info_to_raw_sit(struct seg_entry *se, in __seg_info_to_raw_sit() argument
383 unsigned short raw_vblocks = (se->type << SIT_VBLOCKS_SHIFT) | in __seg_info_to_raw_sit()
384 se->valid_blocks; in __seg_info_to_raw_sit()
386 memcpy(rs->valid_map, se->cur_valid_map, SIT_VBLOCK_MAP_SIZE); in __seg_info_to_raw_sit()
387 rs->mtime = cpu_to_le64(se->mtime); in __seg_info_to_raw_sit()
394 struct seg_entry *se; in seg_info_to_sit_page() local
404 se = get_seg_entry(sbi, start + i); in seg_info_to_sit_page()
405 __seg_info_to_raw_sit(se, rs); in seg_info_to_sit_page()
409 static inline void seg_info_to_raw_sit(struct seg_entry *se, in seg_info_to_raw_sit() argument
412 __seg_info_to_raw_sit(se, rs); in seg_info_to_raw_sit()
414 memcpy(se->ckpt_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_to_raw_sit()
415 se->ckpt_valid_blocks = se->valid_blocks; in seg_info_to_raw_sit()