]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] reiser4: vfs: add truncate_inode_pages_range()
authorHans Reiser <reiser@namesys.com>
Fri, 6 Jan 2006 08:10:36 +0000 (00:10 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:22 +0000 (08:33 -0800)
commit9495a969870f53b153e811749696adbbf8710764
tree051234ada89be22abb9ebbe4a541b16ade3bc2ff
parentc7148cec70408e92965a1fd56f6897d801ba0672
[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>
include/linux/mm.h
mm/truncate.c