[PATCH] mm, oom: OOM killer use rss size without shmem

2019-02-21 Thread Junil Lee
makes the get_mm_rss() return size including SHMEM pages. The oom killer can't get free memory from SHMEM pages directly after kill victim process, it leads to mis-calculate victim points. Therefore, make new API as get_mm_rss_wo_shmem() which returns the rss value excluding SHMEM_PAGES. Signed-of

[PATCH] ext4: remove abnormal set for I_DATA_SEM subclass

2018-07-09 Thread Junil Lee
;i_data_sem); Signed-off-by: Junil Lee --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 13d2706..0757c9a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5637,7 +5637,7 @@ static int ext4_quota_enable(struct sup

[PATCH] ext4: remove abnormal set for I_DATA_SEM subclass

2018-07-08 Thread Junil Lee
;i_data_sem); Signed-off-by: Junil Lee --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 13d2706..f16c92d 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5637,7 +5637,7 @@ static int ext4_quota_enable(struct sup

RE: [PATCH] security: selinux: use kmem_cache for ebitmap

2017-06-11 Thread Junil Lee
Dear Paul. Thank you for your support. I hope you'll be always happy. Thanks, Junil Lee. > -Original Message- > From: Paul Moore [mailto:p...@paul-moore.com] > Sent: Saturday, June 10, 2017 5:17 AM > To: Junil Lee > Cc: Stephen Smalley ; Eric Paris ; > James Mo

[PATCH] security: selinux: use kmem_cache for ebitmap

2017-06-07 Thread Junil Lee
The allocated size for each ebitmap_node is 192byte by kzalloc(). Then, ebitmap_node size is fixed, so it's possible to use only 144byte for each object by kmem_cache_zalloc(). It can reduce some dynamic allocation size. Signed-off-by: Junil Lee --- security/selinux/ss/ebitmap.c

[PATCH] security: selinux: use kmem_cache for ebitmap

2017-06-05 Thread Junil Lee
The allocated size for each ebitmap_node is 192byte by kzalloc(). Then, ebitmap_node size is fixed, so it's possible to use only 144byte for each object by kmem_cache_zalloc(). It can reduce some dynamic allocation size. Signed-off-by: Junil Lee --- security/selinux/ss/ebitmap.c

[PATCH] staging: android: ion: reduce lock contention latency

2017-03-14 Thread Junil Lee
: 3717 -> 93 Signed-off-by: Bongkyu Kim Signed-off-by: Junil Lee --- drivers/staging/android/ion/ion_page_pool.c | 52 ++- drivers/staging/android/ion/ion_priv.h| 8 ++--- drivers/staging/android/ion/ion_system_heap.c | 16 - 3 files changed,