Skip to content

Commit a17a9d9

Browse files
committed
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/[email protected] Google-Bug-Id: 36602237 Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 6488141 commit a17a9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/ialloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ static int find_group_other(struct super_block *sb, struct inode *parent,
662662
* block has been written back to disk. (Yes, these values are
663663
* somewhat arbitrary...)
664664
*/
665-
#define RECENTCY_MIN 5
665+
#define RECENTCY_MIN 60
666666
#define RECENTCY_DIRTY 300
667667

668668
static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino)

0 commit comments

Comments
 (0)