What about chaing truncate_inode_pages to take an additional len
argument so you don't have to remove all pages past an offset?
>
> Other file systems don't need remove_from_page_cache() because they only
> store in the page cache data (and remove_from_page_cache() is called by
> truncate()) and meta data that are never explicitly deleted (like
> directory content in ext2).
Sorry, but that's wrong. XFS does use the pagecache for all metadata and JFS
for all but the superblock (which is never changed durin use)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/