]> err.no Git - linux-2.6/commit
mm: bdi: add separate writeback accounting capability
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)
commite4ad08fe64afca4ef79ecc4c624e6e871688da0d
tree5b8b390b874700041dc0c095e8ba9ac3ed42ea77
parent76f1418b485da2707531178e517bbb5cf06b3c76
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>
fs/configfs/inode.c
fs/hugetlbfs/inode.c
fs/ocfs2/dlm/dlmfs.c
fs/ramfs/inode.c
fs/sysfs/inode.c
include/linux/backing-dev.h
kernel/cgroup.c
mm/page-writeback.c
mm/shmem.c
mm/swap_state.c