ext4: increase wait time needed before reuse of deleted inode numbers
authorTheodore Ts'o <tytso@mit.edu>
Tue, 14 Apr 2020 02:30:52 +0000 (22:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2020 06:51:03 +0000 (08:51 +0200)
commited3767ff9c736acecdb3ee3deda33983f3f0a133
tree00e921d04ccb6a30a923f0e59329c470b496d3ab
parent19f4195b6708d2851c46edd411d9ca5c921dd29e
ext4: increase wait time needed before reuse of deleted inode numbers

[ Upstream commit a17a9d935dc4a50acefaf319d58030f1da7f115a ]

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: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/ialloc.c