diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2005-10-31 05:06:46 -0500 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2005-10-31 05:06:46 -0500 |
| commit | 1f04c0a24b2f3cfe89c802a24396263623e3512d (patch) | |
| tree | d7e2216b6e65b833c0c2b79b478d13ce17dbf296 /mm/truncate.c | |
| parent | 07b188ab773e183871e57b33ae37bf635c9f12ba (diff) | |
| parent | e2f2e58e7968f8446b1078a20a18bf8ea12b4fbc (diff) | |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'mm/truncate.c')
| -rw-r--r-- | mm/truncate.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 60c8764bfac2..29c18f68dc35 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
| @@ -13,18 +13,9 @@ | |||
| 13 | #include <linux/pagemap.h> | 13 | #include <linux/pagemap.h> |
| 14 | #include <linux/pagevec.h> | 14 | #include <linux/pagevec.h> |
| 15 | #include <linux/buffer_head.h> /* grr. try_to_release_page, | 15 | #include <linux/buffer_head.h> /* grr. try_to_release_page, |
| 16 | block_invalidatepage */ | 16 | do_invalidatepage */ |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | static int do_invalidatepage(struct page *page, unsigned long offset) | ||
| 20 | { | ||
| 21 | int (*invalidatepage)(struct page *, unsigned long); | ||
| 22 | invalidatepage = page->mapping->a_ops->invalidatepage; | ||
| 23 | if (invalidatepage == NULL) | ||
| 24 | invalidatepage = block_invalidatepage; | ||
| 25 | return (*invalidatepage)(page, offset); | ||
| 26 | } | ||
| 27 | |||
| 28 | static inline void truncate_partial_page(struct page *page, unsigned partial) | 19 | static inline void truncate_partial_page(struct page *page, unsigned partial) |
| 29 | { | 20 | { |
| 30 | memclear_highpage_flush(page, partial, PAGE_CACHE_SIZE-partial); | 21 | memclear_highpage_flush(page, partial, PAGE_CACHE_SIZE-partial); |
