Lines Matching refs:dispose
394 nfsd_file_dispose_list(struct list_head *dispose)
398 while (!list_empty(dispose)) {
399 nf = list_first_entry(dispose, struct nfsd_file, nf_lru);
407 * @dispose: list of nfsd_files to be disposed
413 nfsd_file_dispose_list_delayed(struct list_head *dispose)
415 while(!list_empty(dispose)) {
416 struct nfsd_file *nf = list_first_entry(dispose,
433 * @arg: dispose list
477 /* Refcount went to zero. Unhash it and queue it to the dispose list */
488 LIST_HEAD(dispose);
492 &dispose, list_lru_count(&nfsd_file_lru));
494 nfsd_file_dispose_list_delayed(&dispose);
514 LIST_HEAD(dispose);
518 nfsd_file_lru_cb, &dispose);
520 nfsd_file_dispose_list_delayed(&dispose);
533 * @dispose: private list to queue successfully-put objects
536 * reference. If it's the last reference, queue it to the dispose list.
539 nfsd_file_cond_queue(struct nfsd_file *nf, struct list_head *dispose)
556 /* If refcount goes to 0, then put on the dispose list */
558 list_add(&nf->nf_lru, dispose);
566 * @dispose: list on which to gather nfsd_files to close out
575 * Populates the dispose list with entries that have already had their
580 nfsd_file_queue_for_close(struct inode *inode, struct list_head *dispose)
591 nfsd_file_cond_queue(nf, dispose);
608 LIST_HEAD(dispose);
610 nfsd_file_queue_for_close(inode, &dispose);
611 nfsd_file_dispose_list_delayed(&dispose);
628 LIST_HEAD(dispose);
632 nfsd_file_queue_for_close(inode, &dispose);
633 while (!list_empty(&dispose)) {
634 nf = list_first_entry(&dispose, struct nfsd_file, nf_lru);
645 * Scrape the freeme list for this nfsd_net, and then dispose of them
804 LIST_HEAD(dispose);
813 nfsd_file_cond_queue(nf, &dispose);
821 nfsd_file_dispose_list(&dispose);