Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230741
b: refs/heads/master
c: 240c879
h: refs/heads/master
i:
  230739: 1c7663e
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed Jan 14, 2011
1 parent 1e9a999 commit ba44ef0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: ecb256f815232b35ae8382cff36ca8ce0bbd077e
refs/heads/master: 240c879f20a605346705be24253bc9fc6fa8a106
5 changes: 4 additions & 1 deletion trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,12 @@ void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty)
{
unsigned long background;
unsigned long dirty;
unsigned long available_memory = determine_dirtyable_memory();
unsigned long uninitialized_var(available_memory);
struct task_struct *tsk;

if (!vm_dirty_bytes || !dirty_background_bytes)
available_memory = determine_dirtyable_memory();

if (vm_dirty_bytes)
dirty = DIV_ROUND_UP(vm_dirty_bytes, PAGE_SIZE);
else
Expand Down

0 comments on commit ba44ef0

Please sign in to comment.