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
;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
;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
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
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
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
: 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,
7 matches
Mail list logo