Lines Matching full:mi
447 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local
449 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init()
450 if (!mi) in nilfs_mdt_init()
453 init_rwsem(&mi->mi_sem); in nilfs_mdt_init()
454 inode->i_private = mi; in nilfs_mdt_init()
502 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size() local
504 mi->mi_entry_size = entry_size; in nilfs_mdt_set_entry_size()
505 mi->mi_entries_per_block = i_blocksize(inode) / entry_size; in nilfs_mdt_set_entry_size()
506 mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); in nilfs_mdt_set_entry_size()
517 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map() local
527 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map()
537 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_save_to_shadow_map() local
539 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_save_to_shadow_map()
631 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_restore_from_shadow_map() local
633 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_restore_from_shadow_map()
635 down_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map()
637 if (mi->mi_palloc_cache) in nilfs_mdt_restore_from_shadow_map()
649 up_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map()
658 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_clear_shadow_map() local
659 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_clear_shadow_map()
662 down_write(&mi->mi_sem); in nilfs_mdt_clear_shadow_map()
666 up_write(&mi->mi_sem); in nilfs_mdt_clear_shadow_map()