• Hans Reiser's avatar
    [PATCH] reiser4: vfs: add truncate_inode_pages_range() · d7339071
    Hans Reiser authored
    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: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d7339071
truncate.c 9.39 KB