Lines Matching refs:bucket
76 struct pnfs_commit_bucket *bucket; in pnfs_generic_clear_request_commit() local
78 bucket = list_first_entry(&req->wb_list, in pnfs_generic_clear_request_commit()
81 freeme = bucket->wlseg; in pnfs_generic_clear_request_commit()
82 bucket->wlseg = NULL; in pnfs_generic_clear_request_commit()
114 pnfs_generic_scan_ds_commit_list(struct pnfs_commit_bucket *bucket, in pnfs_generic_scan_ds_commit_list() argument
118 struct list_head *src = &bucket->written; in pnfs_generic_scan_ds_commit_list()
119 struct list_head *dst = &bucket->committing; in pnfs_generic_scan_ds_commit_list()
127 if (bucket->clseg == NULL) in pnfs_generic_scan_ds_commit_list()
128 bucket->clseg = pnfs_get_lseg(bucket->wlseg); in pnfs_generic_scan_ds_commit_list()
130 pnfs_put_lseg_locked(bucket->wlseg); in pnfs_generic_scan_ds_commit_list()
131 bucket->wlseg = NULL; in pnfs_generic_scan_ds_commit_list()
184 struct pnfs_commit_bucket *bucket; in pnfs_generic_retry_commit() local
191 bucket = &fl_cinfo->buckets[i]; in pnfs_generic_retry_commit()
192 if (list_empty(&bucket->committing)) in pnfs_generic_retry_commit()
194 freeme = bucket->clseg; in pnfs_generic_retry_commit()
195 bucket->clseg = NULL; in pnfs_generic_retry_commit()
196 list_splice_init(&bucket->committing, &pages); in pnfs_generic_retry_commit()
210 struct pnfs_commit_bucket *bucket; in pnfs_generic_alloc_ds_commits() local
216 bucket = fl_cinfo->buckets; in pnfs_generic_alloc_ds_commits()
217 for (i = 0; i < fl_cinfo->nbuckets; i++, bucket++) { in pnfs_generic_alloc_ds_commits()
218 if (list_empty(&bucket->committing)) in pnfs_generic_alloc_ds_commits()
238 struct pnfs_commit_bucket *bucket; in pnfs_fetch_commit_bucket_list() local
240 bucket = &cinfo->ds->buckets[data->ds_commit_index]; in pnfs_fetch_commit_bucket_list()
242 list_splice_init(&bucket->committing, pages); in pnfs_fetch_commit_bucket_list()
243 data->lseg = bucket->clseg; in pnfs_fetch_commit_bucket_list()
244 bucket->clseg = NULL; in pnfs_fetch_commit_bucket_list()