Thread (52 messages) 52 messages, 10 authors, 2008-12-16
STALE6381d

[PATCH v2 3/5] fs: Introduce a per_cpu last_ino allocator

From: Eric Dumazet <hidden>
Date: 2008-11-29 08:44:42
Also in: linux-fsdevel, lkml

new_inode() dirties a contended cache line to get increasing
inode numbers.

Solve this problem by providing to each cpu a per_cpu variable,
feeded by the shared last_ino, but once every 1024 allocations.

This reduce contention on the shared last_ino, and give same
spreading ino numbers than before.
(same wraparound after 2^32 allocations)

Signed-off-by: Eric Dumazet <redacted>
---
 fs/inode.c |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help