]> asedeno.scripts.mit.edu Git - linux.git/commit
ext4: improve smp scalability for inode generation
authorTheodore Ts'o <tytso@mit.edu>
Thu, 9 Nov 2017 03:23:20 +0000 (22:23 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Nov 2017 03:23:20 +0000 (22:23 -0500)
commit232530680290ba94ca37852ab10d9556ea28badf
treecf23ba2b6c563adc685f3b9fee830ac7d202546c
parentd77147ff443b255d82c907a632c825b2cc610b10
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>
fs/ext4/ext4.h
fs/ext4/ialloc.c
fs/ext4/ioctl.c
fs/ext4/super.c