Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <mark.fasheh@oracle.com>

+1
+1
fs/ocfs2/file.c
··· 326 326 (unsigned long long)OCFS2_I(inode)->ip_blkno, 327 327 (unsigned long long)new_i_size); 328 328 329 + unmap_mapping_range(inode->i_mapping, new_i_size + PAGE_SIZE - 1, 0, 1); 329 330 truncate_inode_pages(inode->i_mapping, new_i_size); 330 331 331 332 fe = (struct ocfs2_dinode *) di_bh->b_data;