Lines Matching full:mi
448 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local
450 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init()
451 if (!mi) in nilfs_mdt_init()
454 init_rwsem(&mi->mi_sem); in nilfs_mdt_init()
455 inode->i_private = mi; in nilfs_mdt_init()
503 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size() local
505 mi->mi_entry_size = entry_size; in nilfs_mdt_set_entry_size()
506 mi->mi_entries_per_block = i_blocksize(inode) / entry_size; in nilfs_mdt_set_entry_size()
507 mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); in nilfs_mdt_set_entry_size()
518 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map() local
528 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map()
538 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_save_to_shadow_map() local
540 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_save_to_shadow_map()
628 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_restore_from_shadow_map() local
630 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_restore_from_shadow_map()
632 down_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map()
634 if (mi->mi_palloc_cache) in nilfs_mdt_restore_from_shadow_map()
646 up_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map()
655 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_clear_shadow_map() local
656 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_clear_shadow_map()
659 down_write(&mi->mi_sem); in nilfs_mdt_clear_shadow_map()
663 up_write(&mi->mi_sem); in nilfs_mdt_clear_shadow_map()