aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorHans Reiser <reiser@namesys.com>2006-01-06 03:10:36 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:33:22 -0500
commitd7339071f6a8b50101d7ba327926b770f22d5d8b (patch)
tree051234ada89be22abb9ebbe4a541b16ade3bc2ff /include/linux
parent900b2b463dc6e65ec474d6880412c63c25b3aea9 (diff)
[PATCH] reiser4: vfs: add truncate_inode_pages_range()
This patch makes truncate_inode_pages_range from truncate_inode_pages. truncate_inode_pages became a one-liner call to truncate_inode_pages_range. Reiser4 needs truncate_inode_pages_ranges because it tries to keep correspondence between existences of metadata pointing to data pages and pages to which those metadata point to. So, when metadata of certain part of file is removed from filesystem tree, only pages of corresponding range are to be truncated. (Needed by the madvise(MADV_REMOVE) patch) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index a06a84d347fb..92acae9f1f4c 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -896,6 +896,8 @@ extern unsigned long do_brk(unsigned long, unsigned long);
896/* filemap.c */ 896/* filemap.c */
897extern unsigned long page_unuse(struct page *); 897extern unsigned long page_unuse(struct page *);
898extern void truncate_inode_pages(struct address_space *, loff_t); 898extern void truncate_inode_pages(struct address_space *, loff_t);
899extern void truncate_inode_pages_range(struct address_space *,
900 loff_t lstart, loff_t lend);
899 901
900/* generic vm_area_ops exported for stackable file systems */ 902/* generic vm_area_ops exported for stackable file systems */
901extern struct page *filemap_nopage(struct vm_area_struct *, unsigned long, int *); 903extern struct page *filemap_nopage(struct vm_area_struct *, unsigned long, int *);