diff options
author | Dave Chinner <dchinner@redhat.com> | 2011-07-08 00:14:40 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:44:36 -0400 |
commit | 09cc9fc7a7c3d872065426d7fb0f0ad6d3eb90fc (patch) | |
tree | 79f6f835dd009ac34bd35ee3ee61e616ec2b255a /include/linux/fs.h | |
parent | 98b745c647a5a90c3c21ea43cbfad9a47b0dfad7 (diff) |
inode: move to per-sb LRU locks
With the inode LRUs moving to per-sb structures, there is no longer
a need for a global inode_lru_lock. The locking can be made more
fine-grained by moving to a per-sb LRU lock, isolating the LRU
operations of different filesytsems completely from each other.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 9724f0a48742..460d2cc21ec6 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1397,7 +1397,8 @@ struct super_block { | |||
1397 | struct list_head s_dentry_lru; /* unused dentry lru */ | 1397 | struct list_head s_dentry_lru; /* unused dentry lru */ |
1398 | int s_nr_dentry_unused; /* # of dentry on lru */ | 1398 | int s_nr_dentry_unused; /* # of dentry on lru */ |
1399 | 1399 | ||
1400 | /* inode_lru_lock protects s_inode_lru and s_nr_inodes_unused */ | 1400 | /* s_inode_lru_lock protects s_inode_lru and s_nr_inodes_unused */ |
1401 | spinlock_t s_inode_lru_lock ____cacheline_aligned_in_smp; | ||
1401 | struct list_head s_inode_lru; /* unused inode lru */ | 1402 | struct list_head s_inode_lru; /* unused inode lru */ |
1402 | int s_nr_inodes_unused; /* # of inodes on lru */ | 1403 | int s_nr_inodes_unused; /* # of inodes on lru */ |
1403 | 1404 | ||