fs: remove all rcu head initializations, except on_stack initializations
Remove all rcu head inits. We don't care about the RCU head state before passing it to call_rcu() anyway. Only leave the "on_stack" variants so debugobjects can keep track of objects on stack. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Andries Brouwer <aeb@cwi.nl>
This commit is contained in:
@@ -178,7 +178,6 @@ static struct fdtable * alloc_fdtable(unsigned int nr)
|
||||
fdt->open_fds = (fd_set *)data;
|
||||
data += nr / BITS_PER_BYTE;
|
||||
fdt->close_on_exec = (fd_set *)data;
|
||||
INIT_RCU_HEAD(&fdt->rcu);
|
||||
fdt->next = NULL;
|
||||
|
||||
return fdt;
|
||||
@@ -312,7 +311,6 @@ struct files_struct *dup_fd(struct files_struct *oldf, int *errorp)
|
||||
new_fdt->close_on_exec = (fd_set *)&newf->close_on_exec_init;
|
||||
new_fdt->open_fds = (fd_set *)&newf->open_fds_init;
|
||||
new_fdt->fd = &newf->fd_array[0];
|
||||
INIT_RCU_HEAD(&new_fdt->rcu);
|
||||
new_fdt->next = NULL;
|
||||
|
||||
spin_lock(&oldf->file_lock);
|
||||
@@ -430,7 +428,6 @@ struct files_struct init_files = {
|
||||
.fd = &init_files.fd_array[0],
|
||||
.close_on_exec = (fd_set *)&init_files.close_on_exec_init,
|
||||
.open_fds = (fd_set *)&init_files.open_fds_init,
|
||||
.rcu = RCU_HEAD_INIT,
|
||||
},
|
||||
.file_lock = __SPIN_LOCK_UNLOCKED(init_task.file_lock),
|
||||
};
|
||||
|
Reference in New Issue
Block a user