mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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>
This commit is contained in:
committed by
Jens Axboe
parent
823423ef55
commit
f56753ac2a
@@ -14,9 +14,7 @@
|
||||
#include <linux/device.h>
|
||||
#include <trace/events/writeback.h>
|
||||
|
||||
struct backing_dev_info noop_backing_dev_info = {
|
||||
.capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK,
|
||||
};
|
||||
struct backing_dev_info noop_backing_dev_info;
|
||||
EXPORT_SYMBOL_GPL(noop_backing_dev_info);
|
||||
|
||||
static struct class *bdi_class;
|
||||
@@ -745,7 +743,7 @@ struct backing_dev_info *bdi_alloc(int node_id)
|
||||
kfree(bdi);
|
||||
return NULL;
|
||||
}
|
||||
bdi->capabilities = BDI_CAP_WRITEBACK_ACCT;
|
||||
bdi->capabilities = BDI_CAP_WRITEBACK | BDI_CAP_WRITEBACK_ACCT;
|
||||
bdi->ra_pages = VM_READAHEAD_PAGES;
|
||||
bdi->io_pages = VM_READAHEAD_PAGES;
|
||||
return bdi;
|
||||
|
Reference in New Issue
Block a user