File tree 1 file changed +0
-29
lines changed
1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ struct erofs_workgroup {
143
143
atomic_t refcount ;
144
144
};
145
145
146
- #if defined(CONFIG_SMP )
147
146
static inline bool erofs_workgroup_try_to_freeze (struct erofs_workgroup * grp ,
148
147
int val )
149
148
{
@@ -172,34 +171,6 @@ static inline int erofs_wait_on_workgroup_freezed(struct erofs_workgroup *grp)
172
171
return atomic_cond_read_relaxed (& grp -> refcount ,
173
172
VAL != EROFS_LOCKED_MAGIC );
174
173
}
175
- #else
176
- static inline bool erofs_workgroup_try_to_freeze (struct erofs_workgroup * grp ,
177
- int val )
178
- {
179
- preempt_disable ();
180
- /* no need to spin on UP platforms, let's just disable preemption. */
181
- if (val != atomic_read (& grp -> refcount )) {
182
- preempt_enable ();
183
- return false;
184
- }
185
- return true;
186
- }
187
-
188
- static inline void erofs_workgroup_unfreeze (struct erofs_workgroup * grp ,
189
- int orig_val )
190
- {
191
- preempt_enable ();
192
- }
193
-
194
- static inline int erofs_wait_on_workgroup_freezed (struct erofs_workgroup * grp )
195
- {
196
- int v = atomic_read (& grp -> refcount );
197
-
198
- /* workgroup is never freezed on uniprocessor systems */
199
- DBG_BUGON (v == EROFS_LOCKED_MAGIC );
200
- return v ;
201
- }
202
- #endif /* !CONFIG_SMP */
203
174
#endif /* !CONFIG_EROFS_FS_ZIP */
204
175
205
176
/* we strictly follow PAGE_SIZE and no buffer head yet */
You can’t perform that action at this time.
0 commit comments