mm: bdi: export bdi_writeout_inc()
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 30 Apr 2008 07:54:37 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:50 +0000 (08:29 -0700)
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>
include/linux/backing-dev.h
mm/page-writeback.c

index 13ab79d992684ab2cb2adfb1b4d9a1e448e3e5a2..0a24d5550eb3a082725a150856af3055b77f4ae2 100644 (file)
@@ -135,6 +135,8 @@ static inline s64 bdi_stat_sum(struct backing_dev_info *bdi,
        return sum;
 }
 
+extern void bdi_writeout_inc(struct backing_dev_info *bdi);
+
 /*
  * maximal error of a stat counter.
  */
index bbcb916190c992596e81c88b7a3f38a7d68f7fea..c90a1e8e479f1ce0bb1633f0f13c1535f213b98e 100644 (file)
@@ -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);