Lines Matching refs:shadow

475 	struct nilfs_shadow_map *shadow = mdi->mi_shadow;  in nilfs_mdt_clear()  local
480 if (shadow) { in nilfs_mdt_clear()
481 struct inode *s_inode = shadow->inode; in nilfs_mdt_clear()
483 shadow->inode = NULL; in nilfs_mdt_clear()
517 struct nilfs_shadow_map *shadow) in nilfs_mdt_setup_shadow_map() argument
522 INIT_LIST_HEAD(&shadow->frozen_buffers); in nilfs_mdt_setup_shadow_map()
528 shadow->inode = s_inode; in nilfs_mdt_setup_shadow_map()
529 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map()
541 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_save_to_shadow_map() local
542 struct inode *s_inode = shadow->inode; in nilfs_mdt_save_to_shadow_map()
554 nilfs_bmap_save(ii->i_bmap, &shadow->bmap_store); in nilfs_mdt_save_to_shadow_map()
561 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; in nilfs_mdt_freeze_buffer() local
566 page = grab_cache_page(shadow->inode->i_mapping, bh->b_page->index); in nilfs_mdt_freeze_buffer()
579 &shadow->frozen_buffers); in nilfs_mdt_freeze_buffer()
593 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; in nilfs_mdt_get_frozen_buffer() local
598 page = find_lock_page(shadow->inode->i_mapping, bh->b_page->index); in nilfs_mdt_get_frozen_buffer()
610 static void nilfs_release_frozen_buffers(struct nilfs_shadow_map *shadow) in nilfs_release_frozen_buffers() argument
612 struct list_head *head = &shadow->frozen_buffers; in nilfs_release_frozen_buffers()
631 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_restore_from_shadow_map() local
639 nilfs_copy_back_pages(inode->i_mapping, shadow->inode->i_mapping); in nilfs_mdt_restore_from_shadow_map()
643 NILFS_I(shadow->inode)->i_assoc_inode->i_mapping); in nilfs_mdt_restore_from_shadow_map()
645 nilfs_bmap_restore(ii->i_bmap, &shadow->bmap_store); in nilfs_mdt_restore_from_shadow_map()
657 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_clear_shadow_map() local
658 struct inode *shadow_btnc_inode = NILFS_I(shadow->inode)->i_assoc_inode; in nilfs_mdt_clear_shadow_map()
661 nilfs_release_frozen_buffers(shadow); in nilfs_mdt_clear_shadow_map()
662 truncate_inode_pages(shadow->inode->i_mapping, 0); in nilfs_mdt_clear_shadow_map()