diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-06-12 14:45:52 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-11 09:20:26 +0200 |
commit | d993831fa7ffeb89e994f046f93eeb09ec91df08 (patch) | |
tree | da4f94bbf022c83988bda71adf1f1b3a88cb4592 /mm | |
parent | f09b00d3e789a88fa6c7c03cedc62cb65c1de0cb (diff) | |
download | linux-3.10-d993831fa7ffeb89e994f046f93eeb09ec91df08.tar.gz linux-3.10-d993831fa7ffeb89e994f046f93eeb09ec91df08.tar.bz2 linux-3.10-d993831fa7ffeb89e994f046f93eeb09ec91df08.zip |
writeback: add name to backing_dev_info
This enables us to track who does what and print info. Its main use
is catching dirty inodes on the default_backing_dev_info, so we can
fix that up.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/backing-dev.c | 1 | ||||
-rw-r--r-- | mm/swap_state.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 22c45e932e3..5cb32c5b93d 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -17,6 +17,7 @@ void default_unplug_io_fn(struct backing_dev_info *bdi, struct page *page) EXPORT_SYMBOL(default_unplug_io_fn); struct backing_dev_info default_backing_dev_info = { + .name = "default", .ra_pages = VM_MAX_READAHEAD * 1024 / PAGE_CACHE_SIZE, .state = 0, .capabilities = BDI_CAP_MAP_COPY, diff --git a/mm/swap_state.c b/mm/swap_state.c index 42cd38eba79..5ae6b8b78c8 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -34,6 +34,7 @@ static const struct address_space_operations swap_aops = { }; static struct backing_dev_info swap_backing_dev_info = { + .name = "swap", .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK | BDI_CAP_SWAP_BACKED, .unplug_io_fn = swap_unplug_io_fn, }; |