projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9dfc0b
)
ocfs2: unmap_mapping_range() in ocfs2_truncate()
author
Mark Fasheh
<mark.fasheh@oracle.com>
Mon, 14 May 2007 18:39:40 +0000
(11:39 -0700)
committer
Mark Fasheh
<mark.fasheh@oracle.com>
Fri, 25 May 2007 18:00:31 +0000
(11:00 -0700)
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>
fs/ocfs2/file.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/file.c
b/fs/ocfs2/file.c
index 9395b4fa547df54a5dcce659d779ac718377b053..d459eb93b70c5e81826ee740da74452399b1ff36 100644
(file)
--- 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;