Lines Matching refs:mi
446 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local
448 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init()
449 if (!mi) in nilfs_mdt_init()
452 init_rwsem(&mi->mi_sem); in nilfs_mdt_init()
453 inode->i_private = mi; in nilfs_mdt_init()
501 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size() local
503 mi->mi_entry_size = entry_size; in nilfs_mdt_set_entry_size()
504 mi->mi_entries_per_block = i_blocksize(inode) / entry_size; in nilfs_mdt_set_entry_size()
505 mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); in nilfs_mdt_set_entry_size()
516 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map() local
526 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map()
536 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_save_to_shadow_map() local
538 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_save_to_shadow_map()
626 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_restore_from_shadow_map() local
628 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_restore_from_shadow_map()
630 down_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map()
632 if (mi->mi_palloc_cache) in nilfs_mdt_restore_from_shadow_map()
644 up_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map()
653 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_clear_shadow_map() local
654 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_clear_shadow_map()
657 down_write(&mi->mi_sem); in nilfs_mdt_clear_shadow_map()
661 up_write(&mi->mi_sem); in nilfs_mdt_clear_shadow_map()