Lines Matching refs:fsc
232 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_netfs_clamp_length() local
240 subreq->len = min(xlen, fsc->mount_options->rsize); in ceph_netfs_clamp_length()
247 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in finish_netfs_read() local
254 ceph_update_read_metrics(&fsc->mdsc->metric, req->r_start_latency, in finish_netfs_read()
264 fsc->blocklisted = true; in finish_netfs_read()
288 ceph_dec_osd_stopping_blocker(fsc->mdsc); in finish_netfs_read()
351 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_netfs_issue_read() local
357 bool sparse = IS_ENCRYPTED(inode) || ceph_test_mount_opt(fsc, SPARSEREAD); in ceph_netfs_issue_read()
370 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino, in ceph_netfs_issue_read()
372 CEPH_OSD_FLAG_READ | fsc->client->osdc.client->options->read_from_replica, in ceph_netfs_issue_read()
418 if (!ceph_inc_osd_stopping_blocker(fsc->mdsc)) { in ceph_netfs_issue_read()
661 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepage_nounlock() local
668 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock()
711 if (atomic_long_inc_return(&fsc->writeback_count) > in writepage_nounlock()
712 CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
713 fsc->write_congested = true; in writepage_nounlock()
757 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in writepage_nounlock()
776 fsc->blocklisted = true; in writepage_nounlock()
791 if (atomic_long_dec_return(&fsc->writeback_count) < in writepage_nounlock()
792 CONGESTION_OFF_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
793 fsc->write_congested = false; in writepage_nounlock()
839 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepages_finish() local
848 fsc->blocklisted = true; in writepages_finish()
886 if (atomic_long_dec_return(&fsc->writeback_count) < in writepages_finish()
888 fsc->mount_options->congestion_kb)) in writepages_finish()
889 fsc->write_congested = false; in writepages_finish()
907 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in writepages_finish()
918 ceph_dec_osd_stopping_blocker(fsc->mdsc); in writepages_finish()
929 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_writepages_start() local
944 fsc->write_congested) in ceph_writepages_start()
960 if (fsc->mount_options->wsize < wsize) in ceph_writepages_start()
961 wsize = fsc->mount_options->wsize; in ceph_writepages_start()
1149 if (atomic_long_inc_return(&fsc->writeback_count) > in ceph_writepages_start()
1151 fsc->mount_options->congestion_kb)) in ceph_writepages_start()
1152 fsc->write_congested = true; in ceph_writepages_start()
1206 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1213 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1227 if (!ceph_inc_osd_stopping_blocker(fsc->mdsc)) { in ceph_writepages_start()
1331 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_writepages_start()
1826 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_uninline_data() local
1869 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1879 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_uninline_data()
1880 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1885 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1921 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_uninline_data()
1922 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1924 ceph_update_write_metrics(&fsc->mdsc->metric, req->r_start_latency, in ceph_uninline_data()
1932 down_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
1937 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
1980 struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->netfs.inode); in __ceph_pool_perm_get() local
1981 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_pool_perm_get()
2050 rd_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
2068 wr_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
2093 ceph_osdc_start_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
2096 ceph_osdc_start_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
2098 err = ceph_osdc_wait_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
2099 err2 = ceph_osdc_wait_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
2105 fsc->blocklisted = true; in __ceph_pool_perm_get()
2113 fsc->blocklisted = true; in __ceph_pool_perm_get()