Lines Matching refs:isw
354 struct inode_switch_wbs_context *isw = in inode_switch_wbs_work_fn() local
356 struct inode *inode = isw->inode; in inode_switch_wbs_work_fn()
360 struct bdi_writeback *new_wb = isw->new_wb; in inode_switch_wbs_work_fn()
467 kfree(isw); in inode_switch_wbs_work_fn()
474 struct inode_switch_wbs_context *isw = container_of(rcu_head, in inode_switch_wbs_rcu_fn() local
478 INIT_WORK(&isw->work, inode_switch_wbs_work_fn); in inode_switch_wbs_rcu_fn()
479 queue_work(isw_wq, &isw->work); in inode_switch_wbs_rcu_fn()
494 struct inode_switch_wbs_context *isw; in inode_switch_wbs() local
504 isw = kzalloc(sizeof(*isw), GFP_ATOMIC); in inode_switch_wbs()
505 if (!isw) in inode_switch_wbs()
519 isw->new_wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in inode_switch_wbs()
521 if (!isw->new_wb) in inode_switch_wbs()
528 inode_to_wb(inode) == isw->new_wb) { in inode_switch_wbs()
536 isw->inode = inode; in inode_switch_wbs()
544 call_rcu(&isw->rcu_head, inode_switch_wbs_rcu_fn); in inode_switch_wbs()
549 if (isw->new_wb) in inode_switch_wbs()
550 wb_put(isw->new_wb); in inode_switch_wbs()
551 kfree(isw); in inode_switch_wbs()