diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:49:50 -0500 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:50:26 -0500 |
commit | ff0c7d15f9787b7e8c601533c015295cc68329f8 (patch) | |
tree | e3db53950b8ed78e542ab35a3cd3a6eaee26eccd /include | |
parent | fa0d7e3de6d6fc5004ad9dea0dd6b286af8f03e9 (diff) |
fs: avoid inode RCU freeing for pseudo fs
Pseudo filesystems that don't put inode on RCU list or reachable by
rcu-walk dentries do not need to RCU free their inodes.
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 1 | ||||
-rw-r--r-- | include/linux/net.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 1ff4d0a33b25..ea202fff44f8 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2233,6 +2233,7 @@ extern void iget_failed(struct inode *); | |||
2233 | extern void end_writeback(struct inode *); | 2233 | extern void end_writeback(struct inode *); |
2234 | extern void __destroy_inode(struct inode *); | 2234 | extern void __destroy_inode(struct inode *); |
2235 | extern struct inode *new_inode(struct super_block *); | 2235 | extern struct inode *new_inode(struct super_block *); |
2236 | extern void free_inode_nonrcu(struct inode *inode); | ||
2236 | extern int should_remove_suid(struct dentry *); | 2237 | extern int should_remove_suid(struct dentry *); |
2237 | extern int file_remove_suid(struct file *); | 2238 | extern int file_remove_suid(struct file *); |
2238 | 2239 | ||
diff --git a/include/linux/net.h b/include/linux/net.h index 06bde4908473..16faa130088c 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
@@ -120,6 +120,7 @@ enum sock_shutdown_cmd { | |||
120 | struct socket_wq { | 120 | struct socket_wq { |
121 | wait_queue_head_t wait; | 121 | wait_queue_head_t wait; |
122 | struct fasync_struct *fasync_list; | 122 | struct fasync_struct *fasync_list; |
123 | struct rcu_head rcu; | ||
123 | } ____cacheline_aligned_in_smp; | 124 | } ____cacheline_aligned_in_smp; |
124 | 125 | ||
125 | /** | 126 | /** |