diff options
| author | William Lee Irwin III <wli@holomorphy.com> | 2005-01-04 05:52:52 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-04 05:52:52 -0800 |
| commit | df14c32bdc15b3dccbded901a1109bb09ba9880e (patch) | |
| tree | 6687a3442dc4f5d28dc7d1cf1a05917d2acca4a7 /include/linux | |
| parent | 1d59038871a8a172c6d4d6864196572d8d859ec4 (diff) | |
[PATCH] invalidate_inodes speedup
With Kirill Korotaev <kk@sw.ru>
invalidate_inodes() can take a large amount of time searching the inode
lists for inodes which belong to this fs. Add a separate list for this
search.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 526f4f883fc5..2d9885aa2626 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -427,6 +427,7 @@ static inline int mapping_writably_mapped(struct address_space *mapping) struct inode { struct hlist_node i_hash; struct list_head i_list; + struct list_head i_sb_list; struct list_head i_dentry; unsigned long i_ino; atomic_t i_count; @@ -775,6 +776,7 @@ struct super_block { void *s_security; struct xattr_handler **s_xattr; + struct list_head s_inodes; /* all inodes */ struct list_head s_dirty; /* dirty inodes */ struct list_head s_io; /* parked for writeback */ struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */ |
