]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nilfs2: eliminate the shared counter and spinlock for i_generation
authorRyusuke Konishi <konishi.ryusuke@gmail.com>
Mon, 26 Aug 2024 17:41:12 +0000 (02:41 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:43 +0000 (20:43 -0700)
commit9860f434056e6358ac63e7068254aeaf339cf71e
treee0682e02f3cccddb4ae77e886499a029f854d5d3
parentd7cee0b342cd90abe5d09976a69d1a22ad0c3441
nilfs2: eliminate the shared counter and spinlock for i_generation

Use get_random_u32() as the source for inode->i_generation for new inodes,
and eliminate the original source, the shared counter ns_next_generation
along with its exclusive access spinlock ns_next_gen_lock.

Link: https://lkml.kernel.org/r/20240826174116.5008-5-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Huang Xiaojia <huangxiaojia2@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/inode.c
fs/nilfs2/the_nilfs.c
fs/nilfs2/the_nilfs.h