diff options
author | Jan Kara <jack@suse.com> | 2015-12-07 23:09:35 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-12-07 23:09:35 +0300 |
commit | 53085fac02d12fcd29a9cb074ec480ff0f77ae5c (patch) | |
tree | 52b3a182a397ee36470e44b5deb4633f67c1478b /fs/ext4/ext4.h | |
parent | 2dcba4781fa3842e28f47ab23056d58cd283fca6 (diff) | |
download | linux-53085fac02d12fcd29a9cb074ec480ff0f77ae5c.tar.xz |
ext4: provide ext4_issue_zeroout()
Create new function ext4_issue_zeroout() to zeroout contiguous (both
logically and physically) part of inode data. We will need to issue
zeroout when extent structure is not readily available and this function
will allow us to do it without making up fake extent structures.
Signed-off-by: Jan Kara <jack@suse.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 1008caf3136d..ffc6ab000c78 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2241,7 +2241,8 @@ void ext4_restore_control_page(struct page *data_page); struct page *ext4_encrypt(struct inode *inode, struct page *plaintext_page); int ext4_decrypt(struct page *page); -int ext4_encrypted_zeroout(struct inode *inode, struct ext4_extent *ex); +int ext4_encrypted_zeroout(struct inode *inode, ext4_lblk_t lblk, + ext4_fsblk_t pblk, ext4_lblk_t len); #ifdef CONFIG_EXT4_FS_ENCRYPTION int ext4_init_crypto(void); @@ -2495,6 +2496,8 @@ extern int ext4_filemap_fault(struct vm_area_struct *vma, struct vm_fault *vmf); extern qsize_t *ext4_get_reserved_space(struct inode *inode); extern void ext4_da_update_reserve_space(struct inode *inode, int used, int quota_claim); +extern int ext4_issue_zeroout(struct inode *inode, ext4_lblk_t lblk, + ext4_fsblk_t pblk, ext4_lblk_t len); /* indirect.c */ extern int ext4_ind_map_blocks(handle_t *handle, struct inode *inode, |