[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 09/12: procfs: adapt to kernel interface change
From: |
Samuel Thibault |
Subject: |
[hurd] 09/12: procfs: adapt to kernel interface change |
Date: |
Tue, 23 Feb 2016 23:53:24 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 59b9cf8f46fb5a186fafe08b2086913cf1b00188
Author: Justus Winter <address@hidden>
Date: Tue Feb 23 01:21:44 2016 +0100
procfs: adapt to kernel interface change
procfs makes use of the debug interface which is subject to change.
* procfs/rootdir.c (rootdir_gc_slabinfo): The flag
CACHE_FLAGS_NO_RECLAIM is no longer used.
---
procfs/rootdir.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index 1e9ec8f..93fef8d 100644
--- a/procfs/rootdir.c
+++ b/procfs/rootdir.c
@@ -446,12 +446,11 @@ rootdir_gc_slabinfo (void *hook, char **contents, ssize_t
*contents_len)
for (i = 0; i < cache_info_count; i++)
{
- mem_usage = (cache_info[i].nr_slabs * cache_info[i].slab_size)
- >> 10;
+ mem_usage =
+ (cache_info[i].nr_slabs * cache_info[i].slab_size) >> 10;
mem_total += mem_usage;
- mem_reclaimable = (cache_info[i].flags & CACHE_FLAGS_NO_RECLAIM)
- ? 0 : (cache_info[i].nr_free_slabs
- * cache_info[i].slab_size) >> 10;
+ mem_reclaimable =
+ (cache_info[i].nr_free_slabs * cache_info[i].slab_size) >> 10;
mem_total_reclaimable += mem_reclaimable;
fprintf (m,
"%-21s %04x %7zu %3zuk %4lu %6lu %6lu %7zuk %10zuk\n",
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (ffaff64 -> 3294609), Samuel Thibault, 2016/02/23
- [hurd] 06/12: trans/crash: fix suspending task, Samuel Thibault, 2016/02/23
- [hurd] 07/12: utils/mount: start translators with stderr closed, Samuel Thibault, 2016/02/23
- [hurd] 09/12: procfs: adapt to kernel interface change,
Samuel Thibault <=
- [hurd] 04/12: Make fakeroot forward send errors instead of crashing, Samuel Thibault, 2016/02/23
- [hurd] 12/12: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into upstream, Samuel Thibault, 2016/02/23
- [hurd] 08/12: fix Xioctl-proto.defs creation, Samuel Thibault, 2016/02/23
- [hurd] 10/12: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into upstream, Samuel Thibault, 2016/02/23
- [hurd] 11/12: libports: preserve the complex message flag, Samuel Thibault, 2016/02/23
- [hurd] 03/12: libnetfs: remove unused fields., Samuel Thibault, 2016/02/23
- [hurd] 05/12: nfs: fix deallocation of struct node., Samuel Thibault, 2016/02/23
- [hurd] 02/12: libdiskfs: fix and improve locking in nrefs/nput., Samuel Thibault, 2016/02/23
- [hurd] 01/12: nfs: Use libihash for the node cache., Samuel Thibault, 2016/02/23