diff options
Diffstat (limited to 'fs/nilfs2/mdt.c')
-rw-r--r-- | fs/nilfs2/mdt.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c index 532f85acf273..3bbd340a5136 100644 --- a/fs/nilfs2/mdt.c +++ b/fs/nilfs2/mdt.c | |||
@@ -414,8 +414,6 @@ nilfs_mdt_write_page(struct page *page, struct writeback_control *wbc) | |||
414 | sb = inode->i_sb; | 414 | sb = inode->i_sb; |
415 | nilfs = NILFS_MDT(inode)->mi_nilfs; | 415 | nilfs = NILFS_MDT(inode)->mi_nilfs; |
416 | 416 | ||
417 | if (page->mapping->assoc_mapping) | ||
418 | return 0; /* Do not request flush for shadow page cache */ | ||
419 | if (!sb) { | 417 | if (!sb) { |
420 | down_read(&nilfs->ns_writer_sem); | 418 | down_read(&nilfs->ns_writer_sem); |
421 | writer = nilfs->ns_writer; | 419 | writer = nilfs->ns_writer; |
@@ -566,13 +564,6 @@ void nilfs_mdt_set_entry_size(struct inode *inode, unsigned entry_size, | |||
566 | mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); | 564 | mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); |
567 | } | 565 | } |
568 | 566 | ||
569 | void nilfs_mdt_set_shadow(struct inode *orig, struct inode *shadow) | ||
570 | { | ||
571 | shadow->i_mapping->assoc_mapping = orig->i_mapping; | ||
572 | NILFS_I(shadow)->i_btnode_cache.assoc_mapping = | ||
573 | &NILFS_I(orig)->i_btnode_cache; | ||
574 | } | ||
575 | |||
576 | static const struct address_space_operations shadow_map_aops = { | 567 | static const struct address_space_operations shadow_map_aops = { |
577 | .sync_page = block_sync_page, | 568 | .sync_page = block_sync_page, |
578 | }; | 569 | }; |