diff options
author | Ojaswin Mujoo <ojaswin@linux.ibm.com> | 2023-03-25 09:13:42 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-04-06 07:13:13 +0200 |
commit | 361eb69fc99f1a8f1d653d69ecd742f3cbb896be (patch) | |
tree | d7a8049b093ffb9502e50dff829c3a0782c2e8b6 /fs/ext4/mballoc.h | |
parent | ext4: Use rbtrees to manage PAs instead of inode i_prealloc_list (diff) | |
download | linux-361eb69fc99f1a8f1d653d69ecd742f3cbb896be.tar.xz linux-361eb69fc99f1a8f1d653d69ecd742f3cbb896be.zip |
ext4: Remove the logic to trim inode PAs
Earlier, inode PAs were stored in a linked list. This caused a need to
periodically trim the list down inorder to avoid growing it to a very
large size, as this would severly affect performance during list
iteration.
Recent patches changed this list to an rbtree, and since the tree scales
up much better, we no longer need to have the trim functionality, hence
remove it.
Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/c409addceaa3ade4b40328e28e3b54b2f259689e.1679731817.git.ojaswin@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.h')
-rw-r--r-- | fs/ext4/mballoc.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h index f8e8ee493867..6d85ee8674a6 100644 --- a/fs/ext4/mballoc.h +++ b/fs/ext4/mballoc.h @@ -74,11 +74,6 @@ #define MB_DEFAULT_GROUP_PREALLOC 512 /* - * maximum length of inode prealloc list - */ -#define MB_DEFAULT_MAX_INODE_PREALLOC 512 - -/* * Number of groups to search linearly before performing group scanning * optimization. */ |