Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196877
b: refs/heads/master
c: c2c4986
h: refs/heads/master
i:
  196875: ffbf4f7
v: v3
  • Loading branch information
Jens Axboe committed May 21, 2010
1 parent e204cd2 commit 06f1ad5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b403a98e260f3a8c7c33f58a07c7ae549852170f
refs/heads/master: c2c4986eddaa7dc3d036cb2bfa5c8c5f1f2492a0
1 change: 1 addition & 0 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <linux/kobject.h>
#include <linux/mutex.h>
#include <linux/file.h>
#include <linux/backing-dev.h>
#include <asm/uaccess.h>
#include "internal.h"

Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/writeback.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,14 @@ static inline void inode_sync_wait(struct inode *inode)
/*
* mm/page-writeback.c
*/
#ifdef CONFIG_BLOCK
void laptop_io_completion(struct backing_dev_info *info);
void laptop_sync_completion(void);
void laptop_mode_sync(struct work_struct *work);
void laptop_mode_timer_fn(unsigned long data);
#else
static inline void laptop_sync_completion(void) { }
#endif
void throttle_vm_writeout(gfp_t gfp_mask);

/* These are exported to sysctl. */
Expand Down
2 changes: 2 additions & 0 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ int dirty_writeback_centisecs_handler(ctl_table *table, int write,
return 0;
}

#ifdef CONFIG_BLOCK
void laptop_mode_timer_fn(unsigned long data)
{
struct request_queue *q = (struct request_queue *)data;
Expand Down Expand Up @@ -735,6 +736,7 @@ void laptop_sync_completion(void)

rcu_read_unlock();
}
#endif

/*
* If ratelimit_pages is too high then we can get into dirty-data overload
Expand Down

0 comments on commit 06f1ad5

Please sign in to comment.