Lines Matching full:shadow

474 	struct nilfs_shadow_map *shadow = mdi->mi_shadow;  in nilfs_mdt_clear()  local
479 if (shadow) { in nilfs_mdt_clear()
480 struct inode *s_inode = shadow->inode; in nilfs_mdt_clear()
482 shadow->inode = NULL; in nilfs_mdt_clear()
511 * nilfs_mdt_setup_shadow_map - setup shadow map and bind it to metadata file
513 * @shadow: shadow mapping
516 struct nilfs_shadow_map *shadow) in nilfs_mdt_setup_shadow_map() argument
521 INIT_LIST_HEAD(&shadow->frozen_buffers); in nilfs_mdt_setup_shadow_map()
527 shadow->inode = s_inode; in nilfs_mdt_setup_shadow_map()
528 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map()
533 * nilfs_mdt_save_to_shadow_map - copy bmap and dirty pages to shadow map
540 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_save_to_shadow_map() local
541 struct inode *s_inode = shadow->inode; in nilfs_mdt_save_to_shadow_map()
553 nilfs_bmap_save(ii->i_bmap, &shadow->bmap_store); in nilfs_mdt_save_to_shadow_map()
560 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; in nilfs_mdt_freeze_buffer() local
565 page = grab_cache_page(shadow->inode->i_mapping, bh->b_folio->index); in nilfs_mdt_freeze_buffer()
578 &shadow->frozen_buffers); in nilfs_mdt_freeze_buffer()
592 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; in nilfs_mdt_get_frozen_buffer() local
597 page = find_lock_page(shadow->inode->i_mapping, bh->b_folio->index); in nilfs_mdt_get_frozen_buffer()
609 static void nilfs_release_frozen_buffers(struct nilfs_shadow_map *shadow) in nilfs_release_frozen_buffers() argument
611 struct list_head *head = &shadow->frozen_buffers; in nilfs_release_frozen_buffers()
630 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_restore_from_shadow_map() local
638 nilfs_copy_back_pages(inode->i_mapping, shadow->inode->i_mapping); in nilfs_mdt_restore_from_shadow_map()
642 NILFS_I(shadow->inode)->i_assoc_inode->i_mapping); in nilfs_mdt_restore_from_shadow_map()
644 nilfs_bmap_restore(ii->i_bmap, &shadow->bmap_store); in nilfs_mdt_restore_from_shadow_map()
650 * nilfs_mdt_clear_shadow_map - truncate pages in shadow map caches
656 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_clear_shadow_map() local
657 struct inode *shadow_btnc_inode = NILFS_I(shadow->inode)->i_assoc_inode; in nilfs_mdt_clear_shadow_map()
660 nilfs_release_frozen_buffers(shadow); in nilfs_mdt_clear_shadow_map()
661 truncate_inode_pages(shadow->inode->i_mapping, 0); in nilfs_mdt_clear_shadow_map()