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
6543adbd
Commit
6543adbd
authored
Jul 06, 2003
by
Greg Ungerer
Committed by
Steve French
Jul 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] cleanup show_process_blocks() for non-mmu targets
Clean up show_process_blocks() loop for non-mmu targets.
parent
a7eec8d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
mm/nommu.c
mm/nommu.c
+9
-16
No files found.
mm/nommu.c
View file @
6543adbd
...
...
@@ -250,23 +250,16 @@ static inline unsigned long calc_vm_flags(unsigned long prot, unsigned long flag
#ifdef DEBUG
static
void
show_process_blocks
(
void
)
{
struct
mm_tblock_struct
*
tblock
,
*
tmp
;
struct
mm_tblock_struct
*
tblock
;
printk
(
"Process blocks %d:"
,
current
->
pid
);
tmp
=
current
->
mm
->
context
.
tblock
;
while
(
tmp
)
{
printk
(
" %p: %p"
,
tmp
,
tmp
->
rblock
);
if
(
tmp
->
rblock
)
printk
(
" (%d @%p #%d)"
,
kobjsize
(
tmp
->
rblock
->
kblock
),
tmp
->
rblock
->
kblock
,
tmp
->
rblock
->
refcount
);
if
(
tmp
->
next
)
printk
(
" ->"
);
else
printk
(
"."
);
tmp
=
tmp
->
next
;
for
(
tblock
=
&
current
->
mm
->
context
.
tblock
;
tblock
;
tblock
=
tblock
->
next
)
{
printk
(
" %p: %p"
,
tblock
,
tblock
->
rblock
);
if
(
tblock
->
rblock
)
printk
(
" (%d @%p #%d)"
,
kobjsize
(
tblock
->
rblock
->
kblock
),
tblock
->
rblock
->
kblock
,
tblock
->
rblock
->
refcount
);
printk
(
tblock
->
next
?
" ->"
:
".
\n
"
);
}
printk
(
"
\n
"
);
}
#endif
/* DEBUG */
...
...
@@ -355,7 +348,7 @@ unsigned long do_mmap_pgoff(
error
=
file
->
f_op
->
mmap
(
file
,
&
vma
);
#ifdef DEBUG
printk
(
"
mmap mmap returned %d /%
x
\n
"
,
error
,
vma
.
vm_start
);
printk
(
"
f_op->mmap() returned %d/%l
x
\n
"
,
error
,
vma
.
vm_start
);
#endif
if
(
!
error
)
return
vma
.
vm_start
;
...
...
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