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
nexedi
linux
Commits
4999d6e7
Commit
4999d6e7
authored
May 08, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sparc: Kill references to buffermem_pages.
parent
3475962a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
arch/sparc/kernel/sys_sunos.c
arch/sparc/kernel/sys_sunos.c
+1
-2
arch/sparc64/kernel/sys_sunos32.c
arch/sparc64/kernel/sys_sunos32.c
+1
-2
No files found.
arch/sparc/kernel/sys_sunos.c
View file @
4999d6e7
...
@@ -192,8 +192,7 @@ asmlinkage int sunos_brk(unsigned long brk)
...
@@ -192,8 +192,7 @@ asmlinkage int sunos_brk(unsigned long brk)
* simple, it hopefully works in most obvious cases.. Easy to
* simple, it hopefully works in most obvious cases.. Easy to
* fool it, but this should catch most mistakes.
* fool it, but this should catch most mistakes.
*/
*/
freepages
=
atomic_read
(
&
buffermem_pages
)
>>
PAGE_SHIFT
;
freepages
=
get_page_cache_size
();
freepages
+=
get_page_cache_size
();
freepages
>>=
1
;
freepages
>>=
1
;
freepages
+=
nr_free_pages
();
freepages
+=
nr_free_pages
();
freepages
+=
nr_swap_pages
;
freepages
+=
nr_swap_pages
;
...
...
arch/sparc64/kernel/sys_sunos32.c
View file @
4999d6e7
...
@@ -156,8 +156,7 @@ asmlinkage int sunos_brk(u32 baddr)
...
@@ -156,8 +156,7 @@ asmlinkage int sunos_brk(u32 baddr)
* simple, it hopefully works in most obvious cases.. Easy to
* simple, it hopefully works in most obvious cases.. Easy to
* fool it, but this should catch most mistakes.
* fool it, but this should catch most mistakes.
*/
*/
freepages
=
atomic_read
(
&
buffermem_pages
)
>>
PAGE_SHIFT
;
freepages
=
get_page_cache_size
();
freepages
+=
get_page_cache_size
();
freepages
>>=
1
;
freepages
>>=
1
;
freepages
+=
nr_free_pages
();
freepages
+=
nr_free_pages
();
freepages
+=
nr_swap_pages
;
freepages
+=
nr_swap_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