aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorAllison Henderson <achender@linux.vnet.ibm.com>2011-05-25 07:41:32 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-05-25 07:41:32 -0400
commit308488518dfcbe3be250085cd582f5b0c1ce72a9 (patch)
tree4696b50debf9794f2cbb966cccbedadb93dc996a /fs/ext4/ext4.h
parent55f020db66ce187fb8c8e4002a94b0eb714da450 (diff)
ext4: add new function ext4_block_zero_page_range()
This patch modifies the existing ext4_block_truncate_page() function which was used by the truncate code path, and which zeroes out block unaligned data, by adding a new length parameter, and renames it to ext4_block_zero_page_rage(). This function can now be used to zero out the head of a block, the tail of a block, or the middle of a block. The ext4_block_truncate_page() function is now a wrapper to ext4_block_zero_page_range(). [ext4 punch hole patch series 2/5 v7] Signed-off-by: Allison Henderson <achender@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Mingming Cao <cmm@us.ibm.com>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 2f310d1839ed..c48f9db5b96b 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1825,6 +1825,8 @@ extern int ext4_writepage_trans_blocks(struct inode *);
1825extern int ext4_chunk_trans_blocks(struct inode *, int nrblocks); 1825extern int ext4_chunk_trans_blocks(struct inode *, int nrblocks);
1826extern int ext4_block_truncate_page(handle_t *handle, 1826extern int ext4_block_truncate_page(handle_t *handle,
1827 struct address_space *mapping, loff_t from); 1827 struct address_space *mapping, loff_t from);
1828extern int ext4_block_zero_page_range(handle_t *handle,
1829 struct address_space *mapping, loff_t from, loff_t length);
1828extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); 1830extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf);
1829extern qsize_t *ext4_get_reserved_space(struct inode *inode); 1831extern qsize_t *ext4_get_reserved_space(struct inode *inode);
1830extern void ext4_da_update_reserve_space(struct inode *inode, 1832extern void ext4_da_update_reserve_space(struct inode *inode,