summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/refcounttree.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-10-23 17:18:01 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2010-10-26 03:26:11 +0200
commitf991bd2e14210fb93d722cb23e54991de20e8a3d (patch)
tree60643fb9d828c388d963ceb26504dce9890eabbb /fs/ocfs2/refcounttree.c
parentnew helper: ihold() (diff)
downloadlinux-f991bd2e14210fb93d722cb23e54991de20e8a3d.tar.xz
linux-f991bd2e14210fb93d722cb23e54991de20e8a3d.zip
fs: introduce a per-cpu last_ino allocator
new_inode() dirties a contended cache line to get increasing inode numbers. This limits performance on workloads that cause significant parallel inode allocation. Solve this problem by using a per_cpu variable fed by the shared last_ino in batches of 1024 allocations. This reduces contention on the shared last_ino, and give same spreading ino numbers than before (i.e. same wraparound after 2^32 allocations). Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/refcounttree.c')
0 files changed, 0 insertions, 0 deletions