diff options
author | Theodore Ts'o <tytso@mit.edu> | 2017-11-09 04:23:20 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-11-09 04:23:20 +0100 |
commit | 232530680290ba94ca37852ab10d9556ea28badf (patch) | |
tree | cf23ba2b6c563adc685f3b9fee830ac7d202546c /fs/ext4/ext4.h | |
parent | ext4: add support for online resizing with bigalloc (diff) | |
download | linux-232530680290ba94ca37852ab10d9556ea28badf.tar.xz linux-232530680290ba94ca37852ab10d9556ea28badf.zip |
ext4: improve smp scalability for inode generation
->s_next_generation is protected by s_next_gen_lock but its usage
pattern is very primitive. We don't actually need sequentially
increasing new generation numbers, so let's use prandom_u32() instead.
Reported-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 53ce95b52fd8..5e6d7b6f50c7 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -1355,8 +1355,6 @@ struct ext4_sb_info { int s_first_ino; unsigned int s_inode_readahead_blks; unsigned int s_inode_goal; - spinlock_t s_next_gen_lock; - u32 s_next_generation; u32 s_hash_seed[4]; int s_def_hash_version; int s_hash_unsigned; /* 3 if hash should be signed, 0 if not */ |