aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-04-30 03:54:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 11:29:50 -0400
commitdd5656e59ca7b25fb60a22f9079905ed0da5ed0c (patch)
tree47c156e6023e93f3028c63a2594bbb3e27e968a4
parente4ad08fe64afca4ef79ecc4c624e6e871688da0d (diff)
mm: bdi: export bdi_writeout_inc()
Fuse needs this for writable mmap support. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/backing-dev.h2
-rw-r--r--mm/page-writeback.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
index 13ab79d99268..0a24d5550eb3 100644
--- a/include/linux/backing-dev.h
+++ b/include/linux/backing-dev.h
@@ -135,6 +135,8 @@ static inline s64 bdi_stat_sum(struct backing_dev_info *bdi,
135 return sum; 135 return sum;
136} 136}
137 137
138extern void bdi_writeout_inc(struct backing_dev_info *bdi);
139
138/* 140/*
139 * maximal error of a stat counter. 141 * maximal error of a stat counter.
140 */ 142 */
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)
168 bdi->max_prop_frac); 168 bdi->max_prop_frac);
169} 169}
170 170
171void bdi_writeout_inc(struct backing_dev_info *bdi)
172{
173 unsigned long flags;
174
175 local_irq_save(flags);
176 __bdi_writeout_inc(bdi);
177 local_irq_restore(flags);
178}
179EXPORT_SYMBOL_GPL(bdi_writeout_inc);
180
171static inline void task_dirty_inc(struct task_struct *tsk) 181static inline void task_dirty_inc(struct task_struct *tsk)
172{ 182{
173 prop_inc_single(&vm_dirties, &tsk->dirties); 183 prop_inc_single(&vm_dirties, &tsk->dirties);