Skip to content

Commit

Permalink
mm: bdi: export bdi_writeout_inc()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Szeredi authored and torvalds committed Apr 30, 2008
1 parent e4ad08f commit dd5656e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/backing-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
10 changes: 10 additions & 0 deletions mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dd5656e

Please sign in to comment.