Lines Matching refs:fsc

205 	struct ceph_fs_client *fsc = ceph_inode_to_client(inode);  in ceph_netfs_clamp_length()  local
213 subreq->len = min(xlen, fsc->mount_options->rsize); in ceph_netfs_clamp_length()
219 struct ceph_fs_client *fsc = ceph_inode_to_client(req->r_inode); in finish_netfs_read() local
225 ceph_update_read_metrics(&fsc->mdsc->metric, req->r_start_latency, in finish_netfs_read()
235 fsc->blocklisted = true; in finish_netfs_read()
307 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_netfs_issue_read() local
319 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino, subreq->start, &len, in ceph_netfs_issue_read()
321 CEPH_OSD_FLAG_READ | fsc->client->osdc.client->options->read_from_replica, in ceph_netfs_issue_read()
554 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepage_nounlock() local
560 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock()
598 if (atomic_long_inc_return(&fsc->writeback_count) > in writepage_nounlock()
599 CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
600 fsc->write_congested = true; in writepage_nounlock()
625 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in writepage_nounlock()
644 fsc->blocklisted = true; in writepage_nounlock()
659 if (atomic_long_dec_return(&fsc->writeback_count) < in writepage_nounlock()
660 CONGESTION_OFF_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
661 fsc->write_congested = false; in writepage_nounlock()
707 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepages_finish() local
716 fsc->blocklisted = true; in writepages_finish()
749 if (atomic_long_dec_return(&fsc->writeback_count) < in writepages_finish()
751 fsc->mount_options->congestion_kb)) in writepages_finish()
752 fsc->write_congested = false; in writepages_finish()
770 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in writepages_finish()
791 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_writepages_start() local
805 fsc->write_congested) in ceph_writepages_start()
821 if (fsc->mount_options->wsize < wsize) in ceph_writepages_start()
822 wsize = fsc->mount_options->wsize; in ceph_writepages_start()
1002 if (atomic_long_inc_return(&fsc->writeback_count) > in ceph_writepages_start()
1004 fsc->mount_options->congestion_kb)) in ceph_writepages_start()
1005 fsc->write_congested = true; in ceph_writepages_start()
1040 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1047 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1151 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_writepages_start()
1644 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_uninline_data() local
1682 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1692 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_uninline_data()
1693 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1698 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1734 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_uninline_data()
1735 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1737 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in ceph_uninline_data()
1745 down_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
1750 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
1793 struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->netfs.inode); in __ceph_pool_perm_get() local
1794 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_pool_perm_get()
1863 rd_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1881 wr_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1906 ceph_osdc_start_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
1909 ceph_osdc_start_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
1911 err = ceph_osdc_wait_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
1912 err2 = ceph_osdc_wait_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
1918 fsc->blocklisted = true; in __ceph_pool_perm_get()
1926 fsc->blocklisted = true; in __ceph_pool_perm_get()