summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorEric Whitney <enwlinux@gmail.com>2018-10-01 14:17:41 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-10-01 14:17:41 -0400
commit1dc0aa46e74a3366e12f426b7caaca477853e9c3 (patch)
tree7da00fca5375a302a3711f24ca3af44af0a5e7c8 /fs/ext4/ext4.h
parentad431025aecda85d3ebef5e4a3aca5c1c681d0c7 (diff)
ext4: add new pending reservation mechanism
Add new pending reservation mechanism to help manage reserved cluster accounting. Its primary function is to avoid the need to read extents from the disk when invalidating pages as a result of a truncate, punch hole, or collapse range operation. Signed-off-by: Eric Whitney <enwlinux@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index ad2c215720be..fc0f41dbf90b 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1030,6 +1030,9 @@ struct ext4_inode_info {
1030 ext4_lblk_t i_da_metadata_calc_last_lblock; 1030 ext4_lblk_t i_da_metadata_calc_last_lblock;
1031 int i_da_metadata_calc_len; 1031 int i_da_metadata_calc_len;
1032 1032
1033 /* pending cluster reservations for bigalloc file systems */
1034 struct ext4_pending_tree i_pending_tree;
1035
1033 /* on-disk additional length */ 1036 /* on-disk additional length */
1034 __u16 i_extra_isize; 1037 __u16 i_extra_isize;
1035 1038