File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -110,18 +110,15 @@ void __init proc_init_kmemcache(void)
110
110
111
111
void proc_invalidate_siblings_dcache (struct hlist_head * inodes , spinlock_t * lock )
112
112
{
113
- struct inode * inode ;
114
- struct proc_inode * ei ;
115
113
struct hlist_node * node ;
116
114
struct super_block * old_sb = NULL ;
117
115
118
116
rcu_read_lock ();
119
- for (;;) {
117
+ while ((node = hlist_first_rcu (inodes ))) {
118
+ struct proc_inode * ei = hlist_entry (node , struct proc_inode , sibling_inodes );
120
119
struct super_block * sb ;
121
- node = hlist_first_rcu (inodes );
122
- if (!node )
123
- break ;
124
- ei = hlist_entry (node , struct proc_inode , sibling_inodes );
120
+ struct inode * inode ;
121
+
125
122
spin_lock (lock );
126
123
hlist_del_init_rcu (& ei -> sibling_inodes );
127
124
spin_unlock (lock );
You can’t perform that action at this time.
0 commit comments