Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
51fb5c51
Commit
51fb5c51
authored
Mar 13, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Mar 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] s390: update for altered page_state structure
From: Olaf Hering <olh@suse.de> This patch is needed on s390.
parent
a0729eb4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
arch/s390/appldata/appldata_mem.c
arch/s390/appldata/appldata_mem.c
+11
-4
include/linux/page-flags.h
include/linux/page-flags.h
+3
-0
No files found.
arch/s390/appldata/appldata_mem.c
View file @
51fb5c51
...
...
@@ -54,7 +54,9 @@ struct appldata_mem_data {
u64
freeswap
;
/* free swap space */
// New in 2.6 -->
u64
pgalloc
;
/* page allocations */
u64
pgalloc_high
;
/* page allocations */
u64
pgalloc_normal
;
u64
pgalloc_dma
;
u64
pgfault
;
/* page faults (major+minor) */
u64
pgmajfault
;
/* page faults (major only) */
// <-- New in 2.6
...
...
@@ -69,7 +71,9 @@ static inline void appldata_debug_print(struct appldata_mem_data *mem_data)
P_DEBUG
(
"pgpgout = %8lu KB
\n
"
,
mem_data
->
pgpgout
);
P_DEBUG
(
"pswpin = %8lu Pages
\n
"
,
mem_data
->
pswpin
);
P_DEBUG
(
"pswpout = %8lu Pages
\n
"
,
mem_data
->
pswpout
);
P_DEBUG
(
"pgalloc = %8lu
\n
"
,
mem_data
->
pgalloc
);
P_DEBUG
(
"pgalloc_high = %8lu
\n
"
,
mem_data
->
pgalloc_high
);
P_DEBUG
(
"pgalloc_normal = %8lu
\n
"
,
mem_data
->
pgalloc_normal
);
P_DEBUG
(
"pgalloc_dma = %8lu
\n
"
,
mem_data
->
pgalloc_dma
);
P_DEBUG
(
"pgfault = %8lu
\n
"
,
mem_data
->
pgfault
);
P_DEBUG
(
"pgmajfault = %8lu
\n
"
,
mem_data
->
pgmajfault
);
P_DEBUG
(
"sharedram = %8lu KB
\n
"
,
mem_data
->
sharedram
);
...
...
@@ -105,11 +109,14 @@ static void appldata_get_mem_data(void *data)
mem_data
->
pgpgout
=
ps
.
pgpgout
>>
1
;
mem_data
->
pswpin
=
ps
.
pswpin
;
mem_data
->
pswpout
=
ps
.
pswpout
;
mem_data
->
pgalloc
=
ps
.
pgalloc
;
mem_data
->
pgalloc_high
=
ps
.
pgalloc_high
;
mem_data
->
pgalloc_normal
=
ps
.
pgalloc_normal
;
mem_data
->
pgalloc_dma
=
ps
.
pgalloc_dma
;
mem_data
->
pgfault
=
ps
.
pgfault
;
mem_data
->
pgmajfault
=
ps
.
pgmajfault
;
P_DEBUG
(
"pgalloc = %lu, pgfree = %lu
\n
"
,
ps
.
pgalloc
,
ps
.
pgfree
);
P_DEBUG
(
"pgalloc_high = %lu, pgalloc_normal = %lu, pgalloc_dma = %lu, pgfree = %lu
\n
"
,
ps
.
pgalloc_high
,
ps
.
pgalloc_normal
,
ps
.
pgalloc_dma
,
ps
.
pgfree
);
si_meminfo
(
&
val
);
mem_data
->
sharedram
=
val
.
sharedram
;
...
...
include/linux/page-flags.h
View file @
51fb5c51
...
...
@@ -80,6 +80,9 @@
/*
* Global page accounting. One instance per CPU. Only unsigned longs are
* allowed.
*
* NOTE: if this structure is changed then mm/page_alloc.c and
* arch/s390/appldata/appldata_mem.c must be updated accordingly
*/
struct
page_state
{
unsigned
long
nr_dirty
;
/* Dirty writeable pages */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment