Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1024c902abdcbd2425aa850d7ef04e013ffb35f0 Commit: 1024c902abdcbd2425aa850d7ef04e013ffb35f0 Parent: e9dfc0b2bc42761410e8db6c252c6c5889e178b8 Author: Mark Fasheh <[EMAIL PROTECTED]> AuthorDate: Mon May 14 11:39:40 2007 -0700 Committer: Mark Fasheh <[EMAIL PROTECTED]> CommitDate: Fri May 25 11:00:31 2007 -0700
ocfs2: unmap_mapping_range() in ocfs2_truncate() We weren't calling this before, but since ocfs2 handles the entire truncate operation, we should. Signed-off-by: Mark Fasheh <[EMAIL PROTECTED]> --- fs/ocfs2/file.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 9395b4f..d459eb9 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -326,6 +326,7 @@ static int ocfs2_truncate_file(struct inode *inode, (unsigned long long)OCFS2_I(inode)->ip_blkno, (unsigned long long)new_i_size); + unmap_mapping_range(inode->i_mapping, new_i_size + PAGE_SIZE - 1, 0, 1); truncate_inode_pages(inode->i_mapping, new_i_size); fe = (struct ocfs2_dinode *) di_bh->b_data; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html