Skip to content

Commit a12e4d3

Browse files
committed
Merge branch 'writeback' of git://git.kernel.dk/linux-2.6-block
* 'writeback' of git://git.kernel.dk/linux-2.6-block: writeback: check for registered bdi in flusher add and inode dirty writeback: add name to backing_dev_info writeback: add some debug inode list counters to bdi stats writeback: get rid of pdflush completely writeback: switch to per-bdi threads for flushing data writeback: move dirty inodes from super_block to backing_dev_info writeback: get rid of generic_sync_sb_inodes() export
2 parents 89af571 + 500b067 commit a12e4d3

29 files changed

Lines changed: 1285 additions & 778 deletions

File tree

‎block/blk-core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
501501
(VM_MAX_READAHEAD * 1024) / PAGE_CACHE_SIZE;
502502
q->backing_dev_info.state = 0;
503503
q->backing_dev_info.capabilities = BDI_CAP_MAP_COPY;
504+
q->backing_dev_info.name = "block";
504505

505506
err = bdi_init(&q->backing_dev_info);
506507
if (err) {

‎drivers/block/aoe/aoeblk.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ aoeblk_gdalloc(void *vp)
268268
if (!d->blkq)
269269
goto err_mempool;
270270
blk_queue_make_request(d->blkq, aoeblk_make_request);
271+
d->blkq->backing_dev_info.name = "aoe";
271272
if (bdi_init(&d->blkq->backing_dev_info))
272273
goto err_blkq;
273274
spin_lock_irqsave(&d->lock, flags);

‎drivers/char/mem.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ static const struct file_operations zero_fops = {
822822
* - permits private mappings, "copies" are taken of the source of zeros
823823
*/
824824
static struct backing_dev_info zero_bdi = {
825+
.name = "char/mem",
825826
.capabilities = BDI_CAP_MAP_COPY,
826827
};
827828

‎drivers/staging/pohmelfs/inode.c‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,14 +1950,7 @@ static int pohmelfs_get_sb(struct file_system_type *fs_type,
19501950
*/
19511951
static void pohmelfs_kill_super(struct super_block *sb)
19521952
{
1953-
struct writeback_control wbc = {
1954-
.sync_mode = WB_SYNC_ALL,
1955-
.range_start = 0,
1956-
.range_end = LLONG_MAX,
1957-
.nr_to_write = LONG_MAX,
1958-
};
1959-
generic_sync_sb_inodes(sb, &wbc);
1960-
1953+
sync_inodes_sb(sb);
19611954
kill_anon_super(sb);
19621955
}
19631956

‎fs/btrfs/disk-io.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,7 @@ static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi)
13521352
{
13531353
int err;
13541354

1355+
bdi->name = "btrfs";
13551356
bdi->capabilities = BDI_CAP_MAP_COPY;
13561357
err = bdi_init(bdi);
13571358
if (err)

‎fs/buffer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ static void free_more_memory(void)
281281
struct zone *zone;
282282
int nid;
283283

284-
wakeup_pdflush(1024);
284+
wakeup_flusher_threads(1024);
285285
yield();
286286

287287
for_each_online_node(nid) {

‎fs/char_dev.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* - no readahead or I/O queue unplugging required
3232
*/
3333
struct backing_dev_info directly_mappable_cdev_bdi = {
34+
.name = "char",
3435
.capabilities = (
3536
#ifdef CONFIG_MMU
3637
/* permit private copies of the data to be taken */

‎fs/configfs/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static const struct address_space_operations configfs_aops = {
5151
};
5252

5353
static struct backing_dev_info configfs_backing_dev_info = {
54+
.name = "configfs",
5455
.ra_pages = 0, /* No readahead */
5556
.capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK,
5657
};

0 commit comments

Comments
 (0)