diff options
| author | Dave Chinner <[email protected]> | 2010-10-23 09:03:02 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2010-10-26 01:26:09 +0000 |
| commit | cffbc8aa334f55c9ed42d25202eb3ebf3a97c195 (patch) | |
| tree | dab046695754e2cec1a7ab7a64b236e976d94360 /drivers/misc/ibmasm/ibmasmfs.c | |
| parent | vfs: fix infinite loop caused by clone_mnt race (diff) | |
| download | kernel-cffbc8aa334f55c9ed42d25202eb3ebf3a97c195.tar.gz kernel-cffbc8aa334f55c9ed42d25202eb3ebf3a97c195.zip | |
fs: Convert nr_inodes and nr_unused to per-cpu counters
The number of inodes allocated does not need to be tied to the
addition or removal of an inode to/from a list. If we are not tied
to a list lock, we could update the counters when inodes are
initialised or destroyed, but to do that we need to convert the
counters to be per-cpu (i.e. independent of a lock). This means that
we have the freedom to change the list/locking implementation
without needing to care about the counters.
Based on a patch originally from Eric Dumazet.
[AV: cleaned up a bit, fixed build breakage on weird configs
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/ibmasmfs.c')
0 files changed, 0 insertions, 0 deletions
