Lines Matching refs:fsc
182 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_do_readpage() local
183 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_do_readpage()
227 ceph_update_read_latency(&fsc->mdsc->metric, req->r_start_latency, in ceph_do_readpage()
238 fsc->blocklisted = true; in ceph_do_readpage()
270 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in finish_read() local
309 ceph_update_read_latency(&fsc->mdsc->metric, req->r_start_latency, in finish_read()
457 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_readpages() local
473 max = fsc->mount_options->rsize >> PAGE_SHIFT; in ceph_readpages()
595 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepage_nounlock() local
601 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock()
637 if (atomic_long_inc_return(&fsc->writeback_count) > in writepage_nounlock()
638 CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
662 ceph_update_write_latency(&fsc->mdsc->metric, req->r_start_latency, in writepage_nounlock()
681 fsc->blocklisted = true; in writepage_nounlock()
696 if (atomic_long_dec_return(&fsc->writeback_count) < in writepage_nounlock()
697 CONGESTION_OFF_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
737 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepages_finish() local
745 fsc->blocklisted = true; in writepages_finish()
750 ceph_update_write_latency(&fsc->mdsc->metric, req->r_start_latency, in writepages_finish()
777 if (atomic_long_dec_return(&fsc->writeback_count) < in writepages_finish()
779 fsc->mount_options->congestion_kb)) in writepages_finish()
819 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_writepages_start() local
835 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in ceph_writepages_start()
844 if (fsc->mount_options->wsize < wsize) in ceph_writepages_start()
845 wsize = fsc->mount_options->wsize; in ceph_writepages_start()
1022 if (atomic_long_inc_return(&fsc->writeback_count) > in ceph_writepages_start()
1024 fsc->mount_options->congestion_kb)) { in ceph_writepages_start()
1063 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1070 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1161 rc = ceph_osdc_start_request(&fsc->client->osdc, req, true); in ceph_writepages_start()
1256 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_find_incompatible() local
1259 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in ceph_find_incompatible()
1743 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_uninline_data() local
1799 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1809 err = ceph_osdc_start_request(&fsc->client->osdc, req, false); in ceph_uninline_data()
1811 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1816 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1851 err = ceph_osdc_start_request(&fsc->client->osdc, req, false); in ceph_uninline_data()
1853 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1855 ceph_update_write_latency(&fsc->mdsc->metric, req->r_start_latency, in ceph_uninline_data()
1900 struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->vfs_inode); in __ceph_pool_perm_get() local
1901 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_pool_perm_get()
1970 rd_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1988 wr_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
2013 err = ceph_osdc_start_request(&fsc->client->osdc, rd_req, false); in __ceph_pool_perm_get()
2016 err2 = ceph_osdc_start_request(&fsc->client->osdc, wr_req, false); in __ceph_pool_perm_get()
2019 err = ceph_osdc_wait_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
2021 err2 = ceph_osdc_wait_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
2027 fsc->blocklisted = true; in __ceph_pool_perm_get()
2035 fsc->blocklisted = true; in __ceph_pool_perm_get()