Lines Matching refs:work
423 vfs_sync_work_t *work; in xfs_syncd_queue_work() local
425 work = kmem_alloc(sizeof(struct vfs_sync_work), KM_SLEEP); in xfs_syncd_queue_work()
426 INIT_LIST_HEAD(&work->w_list); in xfs_syncd_queue_work()
427 work->w_syncer = syncer; in xfs_syncd_queue_work()
428 work->w_data = data; in xfs_syncd_queue_work()
429 work->w_vfs = vfs; in xfs_syncd_queue_work()
431 list_add_tail(&work->w_list, &vfs->vfs_sync_list); in xfs_syncd_queue_work()
508 struct vfs_sync_work *work, *n; in xfssyncd() local
540 list_for_each_entry_safe(work, n, &vfsp->vfs_sync_list, w_list) in xfssyncd()
541 list_move(&work->w_list, &tmp); in xfssyncd()
544 list_for_each_entry_safe(work, n, &tmp, w_list) { in xfssyncd()
545 (*work->w_syncer)(vfsp, work->w_data); in xfssyncd()
546 list_del(&work->w_list); in xfssyncd()
547 if (work == &vfsp->vfs_sync_work) in xfssyncd()
549 kmem_free(work, sizeof(struct vfs_sync_work)); in xfssyncd()