Home
last modified time | relevance | path

Searched refs:bdi (Results 1 – 24 of 24) sorted by relevance

/fs/
Dfs-writeback.c41 static int writeback_acquire(struct backing_dev_info *bdi) in writeback_acquire() argument
43 return !test_and_set_bit(BDI_pdflush, &bdi->state); in writeback_acquire()
52 int writeback_in_progress(struct backing_dev_info *bdi) in writeback_in_progress() argument
54 return test_bit(BDI_pdflush, &bdi->state); in writeback_in_progress()
61 static void writeback_release(struct backing_dev_info *bdi) in writeback_release() argument
63 BUG_ON(!writeback_in_progress(bdi)); in writeback_release()
64 clear_bit(BDI_pdflush, &bdi->state); in writeback_release()
455 struct backing_dev_info *bdi = mapping->backing_dev_info; in generic_sync_sb_inodes() local
458 if (!bdi_cap_writeback_dirty(bdi)) { in generic_sync_sb_inodes()
480 if (wbc->nonblocking && bdi_write_congested(bdi)) { in generic_sync_sb_inodes()
[all …]
Dblock_dev.c268 struct bdev_inode *bdi = BDEV_I(inode); in bdev_destroy_inode() local
270 bdi->bdev.bd_inode_backing_dev_info = NULL; in bdev_destroy_inode()
271 kmem_cache_free(bdev_cachep, bdi); in bdev_destroy_inode()
1022 struct backing_dev_info *bdi; in __blkdev_get() local
1049 bdi = blk_get_backing_dev_info(bdev); in __blkdev_get()
1050 if (bdi == NULL) in __blkdev_get()
1051 bdi = &default_backing_dev_info; in __blkdev_get()
1052 bdev->bd_inode->i_data.backing_dev_info = bdi; in __blkdev_get()
Dinode.c181 struct backing_dev_info *bdi; in inode_init_always() local
183 bdi = sb->s_bdev->bd_inode_backing_dev_info; in inode_init_always()
184 if (!bdi) in inode_init_always()
185 bdi = sb->s_bdev->bd_inode->i_mapping->backing_dev_info; in inode_init_always()
186 mapping->backing_dev_info = bdi; in inode_init_always()
/fs/btrfs/
Ddisk-io.c1249 struct backing_dev_info *bdi; in btrfs_congested_fn() local
1258 bdi = blk_get_backing_dev_info(device->bdev); in btrfs_congested_fn()
1259 if (bdi && bdi_congested(bdi, bdi_bits)) { in btrfs_congested_fn()
1271 static void __unplug_io_fn(struct backing_dev_info *bdi, struct page *page) in __unplug_io_fn() argument
1276 info = (struct btrfs_fs_info *)bdi->unplug_io_data; in __unplug_io_fn()
1281 bdi = blk_get_backing_dev_info(device->bdev); in __unplug_io_fn()
1282 if (bdi->unplug_io_fn) in __unplug_io_fn()
1283 bdi->unplug_io_fn(bdi, page); in __unplug_io_fn()
1287 static void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page) in btrfs_unplug_io_fn() argument
1297 __unplug_io_fn(bdi, page); in btrfs_unplug_io_fn()
[all …]
Dvolumes.c141 struct backing_dev_info *bdi; in run_scheduled_bios() local
149 bdi = device->bdev->bd_inode->i_mapping->backing_dev_info; in run_scheduled_bios()
207 if (pending && bdi_write_congested(bdi) && num_run > 16 && in run_scheduled_bios()
2541 struct backing_dev_info *bdi; in __btrfs_map_block() local
2545 bdi = blk_get_backing_dev_info(device->bdev); in __btrfs_map_block()
2546 if (bdi->unplug_io_fn) in __btrfs_map_block()
2547 bdi->unplug_io_fn(bdi, unplug_page); in __btrfs_map_block()
Dextent_io.c2368 struct backing_dev_info *bdi = mapping->backing_dev_info; in extent_write_cache_pages() local
2443 if (wbc->nonblocking && bdi_write_congested(bdi)) { in extent_write_cache_pages()
2485 .bdi = wbc->bdi, in extent_write_full_page()
2520 .bdi = inode->i_mapping->backing_dev_info, in extent_write_locked_range()
Dinode.c2024 inode->i_mapping->backing_dev_info = &root->fs_info->bdi; in btrfs_read_locked_inode()
2039 inode->i_mapping->backing_dev_info = &root->fs_info->bdi; in btrfs_read_locked_inode()
3670 inode->i_mapping->backing_dev_info = &root->fs_info->bdi; in btrfs_create()
4756 inode->i_mapping->backing_dev_info = &root->fs_info->bdi; in btrfs_symlink()
4797 inode->i_mapping->backing_dev_info = &root->fs_info->bdi; in btrfs_symlink()
Dioctl.c370 unsigned long ra_pages = root->fs_info->bdi.ra_pages; in btrfs_defrag_file()
Dctree.h715 struct backing_dev_info bdi; member
/fs/fuse/
Dinode.c241 inode->i_data.backing_dev_info = &fc->bdi; in fuse_iget()
295 bdi_destroy(&fc->bdi); in fuse_put_super()
484 fc->bdi.ra_pages = (VM_MAX_READAHEAD * 1024) / PAGE_CACHE_SIZE; in fuse_conn_init()
485 fc->bdi.unplug_io_fn = default_unplug_io_fn; in fuse_conn_init()
487 fc->bdi.capabilities = BDI_CAP_NO_ACCT_WB; in fuse_conn_init()
491 err = bdi_init(&fc->bdi); in fuse_conn_init()
495 err = bdi_register(&fc->bdi, NULL, "%u:%u-fuseblk", in fuse_conn_init()
498 err = bdi_register_dev(&fc->bdi, fc->dev); in fuse_conn_init()
514 bdi_set_max_ratio(&fc->bdi, 1); in fuse_conn_init()
523 bdi_destroy(&fc->bdi); in fuse_conn_init()
[all …]
Ddev.c286 clear_bdi_congested(&fc->bdi, READ); in request_end()
287 clear_bdi_congested(&fc->bdi, WRITE); in request_end()
412 set_bdi_congested(&fc->bdi, READ); in fuse_request_send_nowait_locked()
413 set_bdi_congested(&fc->bdi, WRITE); in fuse_request_send_nowait_locked()
Dfuse_i.h443 struct backing_dev_info bdi; member
Dfile.c1060 struct backing_dev_info *bdi = inode->i_mapping->backing_dev_info; in fuse_writepage_finish() local
1063 dec_bdi_stat(bdi, BDI_WRITEBACK); in fuse_writepage_finish()
1065 bdi_writeout_inc(bdi); in fuse_writepage_finish()
/fs/afs/
Dwrite.c441 struct backing_dev_info *bdi = page->mapping->backing_dev_info; in afs_writepage() local
458 if (wbc->nonblocking && bdi_write_congested(bdi)) in afs_writepage()
472 struct backing_dev_info *bdi = mapping->backing_dev_info; in afs_writepages_region() local
532 if (wbc->nonblocking && bdi_write_congested(bdi)) { in afs_writepages_region()
551 struct backing_dev_info *bdi = mapping->backing_dev_info; in afs_writepages() local
557 if (wbc->nonblocking && bdi_write_congested(bdi)) { in afs_writepages()
712 .bdi = mapping->backing_dev_info, in afs_writeback_all()
/fs/ext2/
Dialloc.c179 struct backing_dev_info *bdi; in ext2_preread_inode() local
181 bdi = inode->i_mapping->backing_dev_info; in ext2_preread_inode()
182 if (bdi_read_congested(bdi)) in ext2_preread_inode()
184 if (bdi_write_congested(bdi)) in ext2_preread_inode()
/fs/xfs/linux-2.6/
Dxfs_buf.c713 struct backing_dev_info *bdi; in xfs_buf_readahead() local
715 bdi = target->bt_mapping->backing_dev_info; in xfs_buf_readahead()
716 if (bdi_read_congested(bdi)) in xfs_buf_readahead()
1520 struct backing_dev_info *bdi; in xfs_mapping_buftarg() local
1538 bdi = blk_get_backing_dev_info(bdev); in xfs_mapping_buftarg()
1539 if (!bdi) in xfs_mapping_buftarg()
1540 bdi = &default_backing_dev_info; in xfs_mapping_buftarg()
1543 mapping->backing_dev_info = bdi; in xfs_mapping_buftarg()
Dxfs_aops.c886 struct backing_dev_info *bdi; in xfs_convert_page() local
888 bdi = inode->i_mapping->backing_dev_info; in xfs_convert_page()
890 if (bdi_write_congested(bdi)) { in xfs_convert_page()
/fs/gfs2/
Dops_address.c274 struct backing_dev_info *bdi = mapping->backing_dev_info; in gfs2_write_jdata_pagevec() local
318 if (wbc->nonblocking && bdi_write_congested(bdi)) { in gfs2_write_jdata_pagevec()
343 struct backing_dev_info *bdi = mapping->backing_dev_info; in gfs2_write_cache_jdata() local
353 if (wbc->nonblocking && bdi_write_congested(bdi)) { in gfs2_write_cache_jdata()
/fs/ubifs/
Dsuper.c160 inode->i_mapping->backing_dev_info = &c->bdi; in ubifs_iget()
1735 bdi_destroy(&c->bdi); in ubifs_put_super()
1909 c->bdi.capabilities = BDI_CAP_MAP_COPY; in ubifs_fill_super()
1910 c->bdi.unplug_io_fn = default_unplug_io_fn; in ubifs_fill_super()
1911 err = bdi_init(&c->bdi); in ubifs_fill_super()
1959 bdi_destroy(&c->bdi); in ubifs_fill_super()
Dubifs.h1173 struct backing_dev_info bdi; member
Ddir.c119 inode->i_mapping->backing_dev_info = &c->bdi; in ubifs_new_inode()
/fs/nfs/
Dwrite.c1427 .bdi = mapping->backing_dev_info, in nfs_write_mapping()
1462 .bdi = page->mapping->backing_dev_info, in nfs_wb_page_cancel()
1506 .bdi = page->mapping->backing_dev_info, in nfs_wb_page_priority()
/fs/ocfs2/dlm/
Ddlmmaster.c1211 struct dlm_bitmap_diff_iter bdi; in dlm_restart_lock_mastery() local
1221 dlm_bitmap_diff_iter_init(&bdi, mle->vote_map, mle->node_map); in dlm_restart_lock_mastery()
1222 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery()
1290 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery()
/fs/cifs/
Dfile.c1215 struct backing_dev_info *bdi = mapping->backing_dev_info; in cifs_writepages() local
1260 if (wbc->nonblocking && bdi_write_congested(bdi)) { in cifs_writepages()