aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 5c38120c389c..ccfa81f33bb0 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -529,6 +529,11 @@ struct ext4_new_group_data {
529#define EXT4_FREE_BLOCKS_NO_QUOT_UPDATE 0x0008 529#define EXT4_FREE_BLOCKS_NO_QUOT_UPDATE 0x0008
530 530
531/* 531/*
532 * Flags used by ext4_discard_partial_page_buffers
533 */
534#define EXT4_DISCARD_PARTIAL_PG_ZERO_UNMAPPED 0x0001
535
536/*
532 * ioctl commands 537 * ioctl commands
533 */ 538 */
534#define EXT4_IOC_GETFLAGS FS_IOC_GETFLAGS 539#define EXT4_IOC_GETFLAGS FS_IOC_GETFLAGS
@@ -1838,6 +1843,12 @@ extern int ext4_block_truncate_page(handle_t *handle,
1838 struct address_space *mapping, loff_t from); 1843 struct address_space *mapping, loff_t from);
1839extern int ext4_block_zero_page_range(handle_t *handle, 1844extern int ext4_block_zero_page_range(handle_t *handle,
1840 struct address_space *mapping, loff_t from, loff_t length); 1845 struct address_space *mapping, loff_t from, loff_t length);
1846extern int ext4_discard_partial_page_buffers(handle_t *handle,
1847 struct address_space *mapping, loff_t from,
1848 loff_t length, int flags);
1849extern int ext4_discard_partial_page_buffers_no_lock(handle_t *handle,
1850 struct inode *inode, struct page *page, loff_t from,
1851 loff_t length, int flags);
1841extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); 1852extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf);
1842extern qsize_t *ext4_get_reserved_space(struct inode *inode); 1853extern qsize_t *ext4_get_reserved_space(struct inode *inode);
1843extern void ext4_da_update_reserve_space(struct inode *inode, 1854extern void ext4_da_update_reserve_space(struct inode *inode,