Commit a17a9d93 authored by Theodore Ts'o's avatar Theodore Ts'o

ext4: increase wait time needed before reuse of deleted inode numbers

Current wait times have proven to be too short to protect against inode
reuses that lead to metadata inconsistencies.

Now that we will retry the inode allocation if we can't find any
recently deleted inodes, it's a lot safer to increase the recently
deleted time from 5 seconds to a minute.

Link: https://lore.kernel.org/r/20200414023925.273867-1-tytso@mit.edu
Google-Bug-Id: 36602237
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 64881411
...@@ -662,7 +662,7 @@ static int find_group_other(struct super_block *sb, struct inode *parent, ...@@ -662,7 +662,7 @@ static int find_group_other(struct super_block *sb, struct inode *parent,
* block has been written back to disk. (Yes, these values are * block has been written back to disk. (Yes, these values are
* somewhat arbitrary...) * somewhat arbitrary...)
*/ */
#define RECENTCY_MIN 5 #define RECENTCY_MIN 60
#define RECENTCY_DIRTY 300 #define RECENTCY_DIRTY 300
static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino) static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment