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)
downloadlinux-1dc0aa46e74a3366e12f426b7caaca477853e9c3.tar.gz
linux-1dc0aa46e74a3366e12f426b7caaca477853e9c3.tar.bz2
linux-1dc0aa46e74a3366e12f426b7caaca477853e9c3.zip
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 {
ext4_lblk_t i_da_metadata_calc_last_lblock;
int i_da_metadata_calc_len;
+ /* pending cluster reservations for bigalloc file systems */
+ struct ext4_pending_tree i_pending_tree;
+
/* on-disk additional length */
__u16 i_extra_isize;