Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73877
b: refs/heads/master
c: 8c08634
h: refs/heads/master
i:
  73875: 632c7e2
v: v3
  • Loading branch information
Linus Torvalds committed Nov 16, 2007
1 parent 4e61825 commit 98c0285
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adea27f4ba29200c989194a3f6214b652d009e83
refs/heads/master: 8c0863403f109a43d7000b4646da4818220d501f
8 changes: 0 additions & 8 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,20 +297,12 @@ get_dirty_limits(long *pbackground, long *pdirty, long *pbdi_dirty,
{
int background_ratio; /* Percentages */
int dirty_ratio;
int unmapped_ratio;
long background;
long dirty;
unsigned long available_memory = determine_dirtyable_memory();
struct task_struct *tsk;

unmapped_ratio = 100 - ((global_page_state(NR_FILE_MAPPED) +
global_page_state(NR_ANON_PAGES)) * 100) /
available_memory;

dirty_ratio = vm_dirty_ratio;
if (dirty_ratio > unmapped_ratio / 2)
dirty_ratio = unmapped_ratio / 2;

if (dirty_ratio < 5)
dirty_ratio = 5;

Expand Down

0 comments on commit 98c0285

Please sign in to comment.