diff options
| author | Miklos Szeredi <[email protected]> | 2008-04-30 07:54:37 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-30 15:29:50 +0000 |
| commit | dd5656e59ca7b25fb60a22f9079905ed0da5ed0c (patch) | |
| tree | 47c156e6023e93f3028c63a2594bbb3e27e968a4 /mm/page-writeback.c | |
| parent | mm: bdi: add separate writeback accounting capability (diff) | |
| download | kernel-dd5656e59ca7b25fb60a22f9079905ed0da5ed0c.tar.gz kernel-dd5656e59ca7b25fb60a22f9079905ed0da5ed0c.zip | |
mm: bdi: export bdi_writeout_inc()
Fuse needs this for writable mmap support.
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/page-writeback.c')
| -rw-r--r-- | mm/page-writeback.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index bbcb916190c9..c90a1e8e479f 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -168,6 +168,16 @@ static inline void __bdi_writeout_inc(struct backing_dev_info *bdi) bdi->max_prop_frac); } +void bdi_writeout_inc(struct backing_dev_info *bdi) +{ + unsigned long flags; + + local_irq_save(flags); + __bdi_writeout_inc(bdi); + local_irq_restore(flags); +} +EXPORT_SYMBOL_GPL(bdi_writeout_inc); + static inline void task_dirty_inc(struct task_struct *tsk) { prop_inc_single(&vm_dirties, &tsk->dirties); |
