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
324 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino, subreq->start, &len, in ceph_netfs_issue_read()
326 CEPH_OSD_FLAG_READ | fsc->client->osdc.client->options->read_from_replica, in ceph_netfs_issue_read()
559 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepage_nounlock() local
565 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock()
606 if (atomic_long_inc_return(&fsc->writeback_count) > in writepage_nounlock()
607 CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
608 fsc->write_congested = true; in writepage_nounlock()
633 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in writepage_nounlock()
652 fsc->blocklisted = true; in writepage_nounlock()
667 if (atomic_long_dec_return(&fsc->writeback_count) < in writepage_nounlock()
668 CONGESTION_OFF_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
669 fsc->write_congested = false; in writepage_nounlock()
715 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepages_finish() local
724 fsc->blocklisted = true; in writepages_finish()
757 if (atomic_long_dec_return(&fsc->writeback_count) < in writepages_finish()
759 fsc->mount_options->congestion_kb)) in writepages_finish()
760 fsc->write_congested = false; in writepages_finish()
778 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in writepages_finish()
799 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_writepages_start() local
813 fsc->write_congested) in ceph_writepages_start()
829 if (fsc->mount_options->wsize < wsize) in ceph_writepages_start()
830 wsize = fsc->mount_options->wsize; in ceph_writepages_start()
1010 if (atomic_long_inc_return(&fsc->writeback_count) > in ceph_writepages_start()
1012 fsc->mount_options->congestion_kb)) in ceph_writepages_start()
1013 fsc->write_congested = true; in ceph_writepages_start()
1048 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1055 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1159 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_writepages_start()
1654 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_uninline_data() local
1697 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1707 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_uninline_data()
1708 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1713 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1749 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_uninline_data()
1750 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1752 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in ceph_uninline_data()
1760 down_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
1765 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
1808 struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->netfs.inode); in __ceph_pool_perm_get() local
1809 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_pool_perm_get()
1878 rd_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1896 wr_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1921 ceph_osdc_start_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
1924 ceph_osdc_start_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
1926 err = ceph_osdc_wait_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
1927 err2 = ceph_osdc_wait_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
1933 fsc->blocklisted = true; in __ceph_pool_perm_get()
1941 fsc->blocklisted = true; in __ceph_pool_perm_get()