bdi: replace BDI_CAP_NO_{WRITEBACK,ACCT_DIRTY} with a single flag
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Sep 2020 06:51:40 +0000 (08:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:43:39 +0000 (13:43 -0600)
commitf56753ac2a90810726334df04d735e9f8f5a32d9
tree80c7e4178e880cc0c5fa35d4c7974dc77584e61b
parent823423ef55f4d9c470b1edc9c5b5c93d06abfaae
bdi: replace BDI_CAP_NO_{WRITEBACK,ACCT_DIRTY} with a single flag

Replace the two negative flags that are always used together with a
single positive flag that indicates the writeback capability instead
of two related non-capabilities.  Also remove the pointless wrappers
to just check the flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/9p/vfs_file.c
fs/fs-writeback.c
include/linux/backing-dev.h
mm/backing-dev.c
mm/filemap.c
mm/memcontrol.c
mm/memory-failure.c
mm/migrate.c
mm/mmap.c
mm/page-writeback.c