File tree Expand file tree Collapse file tree 5 files changed +7
-14
lines changed Expand file tree Collapse file tree 5 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ struct mm_struct {
406
406
spinlock_t ioctx_lock ;
407
407
struct kioctx_table __rcu * ioctx_table ;
408
408
#endif
409
- #ifdef CONFIG_MM_OWNER
409
+ #ifdef CONFIG_MEMCG
410
410
/*
411
411
* "owner" points to a task that is regarded as the canonical
412
412
* user/owner of this mm. All of the following must be true in
Original file line number Diff line number Diff line change @@ -2956,7 +2956,7 @@ static inline void inc_syscw(struct task_struct *tsk)
2956
2956
#define TASK_SIZE_OF (tsk ) TASK_SIZE
2957
2957
#endif
2958
2958
2959
- #ifdef CONFIG_MM_OWNER
2959
+ #ifdef CONFIG_MEMCG
2960
2960
extern void mm_update_next_owner (struct mm_struct * mm );
2961
2961
extern void mm_init_owner (struct mm_struct * mm , struct task_struct * p );
2962
2962
#else
@@ -2967,7 +2967,7 @@ static inline void mm_update_next_owner(struct mm_struct *mm)
2967
2967
static inline void mm_init_owner (struct mm_struct * mm , struct task_struct * p )
2968
2968
{
2969
2969
}
2970
- #endif /* CONFIG_MM_OWNER */
2970
+ #endif /* CONFIG_MEMCG */
2971
2971
2972
2972
static inline unsigned long task_rlimit (const struct task_struct * tsk ,
2973
2973
unsigned int limit )
Original file line number Diff line number Diff line change @@ -933,7 +933,6 @@ config RESOURCE_COUNTERS
933
933
config MEMCG
934
934
bool "Memory Resource Controller for Control Groups"
935
935
depends on RESOURCE_COUNTERS
936
- select MM_OWNER
937
936
select EVENTFD
938
937
help
939
938
Provides a memory resource controller that manages both anonymous
@@ -951,9 +950,6 @@ config MEMCG
951
950
disable memory resource controller and you can avoid overheads.
952
951
(and lose benefits of memory resource controller)
953
952
954
- This config option also selects MM_OWNER config option, which
955
- could in turn add some fork/exit overhead.
956
-
957
953
config MEMCG_SWAP
958
954
bool "Memory Resource Controller Swap Extension"
959
955
depends on MEMCG && SWAP
@@ -1179,9 +1175,6 @@ config SCHED_AUTOGROUP
1179
1175
desktop applications. Task group autogeneration is currently based
1180
1176
upon task session.
1181
1177
1182
- config MM_OWNER
1183
- bool
1184
-
1185
1178
config SYSFS_DEPRECATED
1186
1179
bool "Enable deprecated sysfs features to support old userspace tools"
1187
1180
depends on SYSFS
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ int disallow_signal(int sig)
352
352
353
353
EXPORT_SYMBOL (disallow_signal );
354
354
355
- #ifdef CONFIG_MM_OWNER
355
+ #ifdef CONFIG_MEMCG
356
356
/*
357
357
* A task is exiting. If it owned this mm, find a new owner for the mm.
358
358
*/
@@ -434,7 +434,7 @@ void mm_update_next_owner(struct mm_struct *mm)
434
434
task_unlock (c );
435
435
put_task_struct (c );
436
436
}
437
- #endif /* CONFIG_MM_OWNER */
437
+ #endif /* CONFIG_MEMCG */
438
438
439
439
/*
440
440
* Turn us into a lazy TLB process if we
Original file line number Diff line number Diff line change @@ -1099,12 +1099,12 @@ static void rt_mutex_init_task(struct task_struct *p)
1099
1099
#endif
1100
1100
}
1101
1101
1102
- #ifdef CONFIG_MM_OWNER
1102
+ #ifdef CONFIG_MEMCG
1103
1103
void mm_init_owner (struct mm_struct * mm , struct task_struct * p )
1104
1104
{
1105
1105
mm -> owner = p ;
1106
1106
}
1107
- #endif /* CONFIG_MM_OWNER */
1107
+ #endif /* CONFIG_MEMCG */
1108
1108
1109
1109
/*
1110
1110
* Initialize POSIX timer handling for a single task.
You can’t perform that action at this time.
0 commit comments