Function report | 
Source Code:mm\backing-dev.c | 
Create Date:2022-07-28 14:24:13 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:wb_init
Proto:static int wb_init(struct bdi_writeback *wb, struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct bdi_writeback * | wb | |
| struct backing_dev_info * | bdi | |
| int | blkcg_id | |
| gfp_t | gfp | 
| 291 | If wb != the root writeback info for this bdi Then bdi_get(bdi) | 
| 293 | ur parent bdi = bdi | 
| 294 | last old data flush = jiffies | 
| 309 | INIT_DELAYED_WORK( & work item used for writeback , Handle writeback of dirty data for the device backed by this bdi. Also* reschedules periodically and does kupdated style flushing.) | 
| 312 | congested = wb_congested_get_create(bdi, blkcg_id, gfp) | 
| 313 | If Not congested Then | 
| 315 | Go to out_put_bdi | 
| 318 | err = fprop_local_init_percpu( & completions, gfp) | 
| 319 | If err Then Go to out_put_cong | 
| 322 | When i < NR_WB_STAT_ITEMS cycle | 
| 323 | err = percpu_counter_init( & stat[i], 0, gfp) | 
| 324 | If err Then Go to out_destroy_stat | 
| 328 | Return 0 | 
| 330 | out_destroy_stat : | 
| 332 | percpu_counter_destroy( & stat[i]) | 
| 334 | out_put_cong : | 
| 336 | out_put_bdi : | 
| 337 | If wb != the root writeback info for this bdi Then bdi_put(bdi) | 
| 339 | Return err | 
| Name | Describe | 
|---|---|
| cgwb_bdi_init | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |