Lines Matching refs:fsc

190 	struct ceph_fs_client *fsc = ceph_inode_to_client(inode);  in ceph_do_readpage()  local
191 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_do_readpage()
235 ceph_update_read_latency(&fsc->mdsc->metric, req->r_start_latency, in ceph_do_readpage()
246 fsc->blocklisted = true; in ceph_do_readpage()
278 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in finish_read() local
317 ceph_update_read_latency(&fsc->mdsc->metric, req->r_start_latency, in finish_read()
465 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_readpages() local
481 max = fsc->mount_options->rsize >> PAGE_SHIFT; in ceph_readpages()
603 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepage_nounlock() local
609 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock()
645 if (atomic_long_inc_return(&fsc->writeback_count) > in writepage_nounlock()
646 CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
670 ceph_update_write_latency(&fsc->mdsc->metric, req->r_start_latency, in writepage_nounlock()
689 fsc->blocklisted = true; in writepage_nounlock()
704 if (atomic_long_dec_return(&fsc->writeback_count) < in writepage_nounlock()
705 CONGESTION_OFF_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
745 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepages_finish() local
753 fsc->blocklisted = true; in writepages_finish()
758 ceph_update_write_latency(&fsc->mdsc->metric, req->r_start_latency, in writepages_finish()
785 if (atomic_long_dec_return(&fsc->writeback_count) < in writepages_finish()
787 fsc->mount_options->congestion_kb)) in writepages_finish()
827 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_writepages_start() local
843 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in ceph_writepages_start()
852 if (fsc->mount_options->wsize < wsize) in ceph_writepages_start()
853 wsize = fsc->mount_options->wsize; in ceph_writepages_start()
1030 if (atomic_long_inc_return(&fsc->writeback_count) > in ceph_writepages_start()
1032 fsc->mount_options->congestion_kb)) { in ceph_writepages_start()
1071 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1078 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1169 rc = ceph_osdc_start_request(&fsc->client->osdc, req, true); in ceph_writepages_start()
1264 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_find_incompatible() local
1267 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in ceph_find_incompatible()
1723 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_uninline_data() local
1779 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1789 err = ceph_osdc_start_request(&fsc->client->osdc, req, false); in ceph_uninline_data()
1791 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1796 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1831 err = ceph_osdc_start_request(&fsc->client->osdc, req, false); in ceph_uninline_data()
1833 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1835 ceph_update_write_latency(&fsc->mdsc->metric, req->r_start_latency, in ceph_uninline_data()
1880 struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->vfs_inode); in __ceph_pool_perm_get() local
1881 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_pool_perm_get()
1950 rd_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1968 wr_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1993 err = ceph_osdc_start_request(&fsc->client->osdc, rd_req, false); in __ceph_pool_perm_get()
1996 err2 = ceph_osdc_start_request(&fsc->client->osdc, wr_req, false); in __ceph_pool_perm_get()
1999 err = ceph_osdc_wait_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
2001 err2 = ceph_osdc_wait_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
2007 fsc->blocklisted = true; in __ceph_pool_perm_get()
2015 fsc->blocklisted = true; in __ceph_pool_perm_get()