diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-04-30 03:54:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:50 -0400 |
commit | e4ad08fe64afca4ef79ecc4c624e6e871688da0d (patch) | |
tree | 5b8b390b874700041dc0c095e8ba9ac3ed42ea77 /kernel/cgroup.c | |
parent | 76f1418b485da2707531178e517bbb5cf06b3c76 (diff) |
mm: bdi: add separate writeback accounting capability
Add a new BDI capability flag: BDI_CAP_NO_ACCT_WB. If this flag is
set, then don't update the per-bdi writeback stats from
test_set_page_writeback() and test_clear_page_writeback().
Misc cleanups:
- convert bdi_cap_writeback_dirty() and friends to static inline functions
- create a flag that includes all three dirty/writeback related flags,
since almst all users will want to have them toghether
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>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index b9d467d83fc1..fbc6fc8949b4 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -575,7 +575,7 @@ static struct inode_operations cgroup_dir_inode_operations; | |||
575 | static struct file_operations proc_cgroupstats_operations; | 575 | static struct file_operations proc_cgroupstats_operations; |
576 | 576 | ||
577 | static struct backing_dev_info cgroup_backing_dev_info = { | 577 | static struct backing_dev_info cgroup_backing_dev_info = { |
578 | .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK, | 578 | .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK, |
579 | }; | 579 | }; |
580 | 580 | ||
581 | static struct inode *cgroup_new_inode(mode_t mode, struct super_block *sb) | 581 | static struct inode *cgroup_new_inode(mode_t mode, struct super_block *sb) |