Lines Matching refs:monitor

27 	struct cachefiles_one_read *monitor =  in cachefiles_read_waiter()  local
28 container_of(wait, struct cachefiles_one_read, monitor); in cachefiles_read_waiter()
30 struct fscache_retrieval *op = monitor->op; in cachefiles_read_waiter()
37 monitor->netfs_page->index, mode, sync, in cachefiles_read_waiter()
66 list_add_tail(&monitor->op_link, &op->to_do); in cachefiles_read_waiter()
82 struct cachefiles_one_read *monitor) in cachefiles_read_reissue() argument
85 struct page *backpage = monitor->back_page, *backpage2; in cachefiles_read_reissue()
114 INIT_LIST_HEAD(&monitor->op_link); in cachefiles_read_reissue()
115 add_page_wait_queue(backpage, &monitor->monitor); in cachefiles_read_reissue()
146 list_del(&monitor->op_link); in cachefiles_read_reissue()
158 struct cachefiles_one_read *monitor; in cachefiles_read_copier() local
173 monitor = list_entry(op->to_do.next, in cachefiles_read_copier()
175 list_del(&monitor->op_link); in cachefiles_read_copier()
179 _debug("- copy {%lu}", monitor->back_page->index); in cachefiles_read_copier()
185 } else if (PageUptodate(monitor->back_page)) { in cachefiles_read_copier()
186 copy_highpage(monitor->netfs_page, monitor->back_page); in cachefiles_read_copier()
187 fscache_mark_page_cached(monitor->op, in cachefiles_read_copier()
188 monitor->netfs_page); in cachefiles_read_copier()
190 } else if (!PageError(monitor->back_page)) { in cachefiles_read_copier()
192 error = cachefiles_read_reissue(object, monitor); in cachefiles_read_copier()
200 (unsigned long) monitor->back_page->flags); in cachefiles_read_copier()
204 put_page(monitor->back_page); in cachefiles_read_copier()
206 fscache_end_io(op, monitor->netfs_page, error); in cachefiles_read_copier()
207 put_page(monitor->netfs_page); in cachefiles_read_copier()
210 kfree(monitor); in cachefiles_read_copier()
237 struct cachefiles_one_read *monitor; in cachefiles_read_backing_file_one() local
247 monitor = kzalloc(sizeof(*monitor), cachefiles_gfp); in cachefiles_read_backing_file_one()
248 if (!monitor) in cachefiles_read_backing_file_one()
251 monitor->netfs_page = netpage; in cachefiles_read_backing_file_one()
252 monitor->op = fscache_get_retrieval(op); in cachefiles_read_backing_file_one()
254 init_waitqueue_func_entry(&monitor->monitor, cachefiles_read_waiter); in cachefiles_read_backing_file_one()
297 get_page(monitor->netfs_page); in cachefiles_read_backing_file_one()
299 monitor->back_page = backpage; in cachefiles_read_backing_file_one()
300 monitor->monitor.private = backpage; in cachefiles_read_backing_file_one()
301 add_page_wait_queue(backpage, &monitor->monitor); in cachefiles_read_backing_file_one()
302 monitor = NULL; in cachefiles_read_backing_file_one()
352 if (monitor) { in cachefiles_read_backing_file_one()
353 fscache_put_retrieval(monitor->op); in cachefiles_read_backing_file_one()
354 kfree(monitor); in cachefiles_read_backing_file_one()
374 fscache_put_retrieval(monitor->op); in cachefiles_read_backing_file_one()
375 kfree(monitor); in cachefiles_read_backing_file_one()
473 struct cachefiles_one_read *monitor = NULL; in cachefiles_read_backing_file() local
486 if (!monitor) { in cachefiles_read_backing_file()
487 monitor = kzalloc(sizeof(*monitor), cachefiles_gfp); in cachefiles_read_backing_file()
488 if (!monitor) in cachefiles_read_backing_file()
491 monitor->op = fscache_get_retrieval(op); in cachefiles_read_backing_file()
492 init_waitqueue_func_entry(&monitor->monitor, in cachefiles_read_backing_file()
547 monitor->netfs_page = netpage; in cachefiles_read_backing_file()
550 monitor->back_page = backpage; in cachefiles_read_backing_file()
551 monitor->monitor.private = backpage; in cachefiles_read_backing_file()
552 add_page_wait_queue(backpage, &monitor->monitor); in cachefiles_read_backing_file()
553 monitor = NULL; in cachefiles_read_backing_file()
645 if (monitor) { in cachefiles_read_backing_file()
647 kfree(monitor); in cachefiles_read_backing_file()