Lines Matching refs:se
27 #define SE_PAGETYPE(se) ((IS_NODESEG((se)->type) ? NODE : DATA)) argument
368 struct seg_entry *se = get_seg_entry(sbi, start_segno); in get_ckpt_valid_blocks() local
370 blocks += se->ckpt_valid_blocks; in get_ckpt_valid_blocks()
377 static inline void seg_info_from_raw_sit(struct seg_entry *se, in seg_info_from_raw_sit() argument
380 se->valid_blocks = GET_SIT_VBLOCKS(rs); in seg_info_from_raw_sit()
381 se->ckpt_valid_blocks = GET_SIT_VBLOCKS(rs); in seg_info_from_raw_sit()
382 memcpy(se->cur_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
383 memcpy(se->ckpt_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
385 memcpy(se->cur_valid_map_mir, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
387 se->type = GET_SIT_TYPE(rs); in seg_info_from_raw_sit()
388 se->mtime = le64_to_cpu(rs->mtime); in seg_info_from_raw_sit()
391 static inline void __seg_info_to_raw_sit(struct seg_entry *se, in __seg_info_to_raw_sit() argument
394 unsigned short raw_vblocks = (se->type << SIT_VBLOCKS_SHIFT) | in __seg_info_to_raw_sit()
395 se->valid_blocks; in __seg_info_to_raw_sit()
397 memcpy(rs->valid_map, se->cur_valid_map, SIT_VBLOCK_MAP_SIZE); in __seg_info_to_raw_sit()
398 rs->mtime = cpu_to_le64(se->mtime); in __seg_info_to_raw_sit()
405 struct seg_entry *se; in seg_info_to_sit_page() local
415 se = get_seg_entry(sbi, start + i); in seg_info_to_sit_page()
416 __seg_info_to_raw_sit(se, rs); in seg_info_to_sit_page()
420 static inline void seg_info_to_raw_sit(struct seg_entry *se, in seg_info_to_raw_sit() argument
423 __seg_info_to_raw_sit(se, rs); in seg_info_to_raw_sit()
425 memcpy(se->ckpt_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_to_raw_sit()
426 se->ckpt_valid_blocks = se->valid_blocks; in seg_info_to_raw_sit()