.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | #include <linux/export.h> |
---|
2 | 3 | #include <linux/sched/signal.h> |
---|
3 | 4 | #include <linux/sched/task.h> |
---|
.. | .. |
---|
116 | 117 | fs->users = 1; |
---|
117 | 118 | fs->in_exec = 0; |
---|
118 | 119 | spin_lock_init(&fs->lock); |
---|
119 | | - seqcount_init(&fs->seq); |
---|
| 120 | + seqcount_spinlock_init(&fs->seq, &fs->lock); |
---|
120 | 121 | fs->umask = old->umask; |
---|
121 | 122 | |
---|
122 | 123 | spin_lock(&old->lock); |
---|
.. | .. |
---|
162 | 163 | struct fs_struct init_fs = { |
---|
163 | 164 | .users = 1, |
---|
164 | 165 | .lock = __SPIN_LOCK_UNLOCKED(init_fs.lock), |
---|
165 | | - .seq = SEQCNT_ZERO(init_fs.seq), |
---|
| 166 | + .seq = SEQCNT_SPINLOCK_ZERO(init_fs.seq, &init_fs.lock), |
---|
166 | 167 | .umask = 0022, |
---|
167 | 168 | }; |
---|