aboutsummaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/truncate.c')
-rw-r--r--mm/truncate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/truncate.c b/mm/truncate.c
index cd3e34b816db..8fde6580657e 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -35,8 +35,10 @@ void do_invalidatepage(struct page *page, unsigned long offset)
35{ 35{
36 void (*invalidatepage)(struct page *, unsigned long); 36 void (*invalidatepage)(struct page *, unsigned long);
37 invalidatepage = page->mapping->a_ops->invalidatepage; 37 invalidatepage = page->mapping->a_ops->invalidatepage;
38#ifdef CONFIG_BLOCK
38 if (!invalidatepage) 39 if (!invalidatepage)
39 invalidatepage = block_invalidatepage; 40 invalidatepage = block_invalidatepage;
41#endif
40 if (invalidatepage) 42 if (invalidatepage)
41 (*invalidatepage)(page, offset); 43 (*invalidatepage)(page, offset);
42} 44}