Lines Matching refs:fsc
192 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_do_readpage() local
221 err = ceph_osdc_readpages(&fsc->client->osdc, ceph_vino(inode), in ceph_do_readpage()
231 fsc->blacklisted = true; in ceph_do_readpage()
445 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_readpages() local
461 max = fsc->mount_options->rsize >> PAGE_SHIFT; in ceph_readpages()
583 struct ceph_fs_client *fsc; in writepage_nounlock() local
593 fsc = ceph_inode_to_client(inode); in writepage_nounlock()
626 if (atomic_long_inc_return(&fsc->writeback_count) > in writepage_nounlock()
627 CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
631 err = ceph_osdc_writepages(&fsc->client->osdc, ceph_vino(inode), in writepage_nounlock()
648 fsc->blacklisted = true; in writepage_nounlock()
663 if (atomic_long_dec_return(&fsc->writeback_count) < in writepage_nounlock()
664 CONGESTION_OFF_THRESH(fsc->mount_options->congestion_kb)) in writepage_nounlock()
704 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepages_finish() local
712 fsc->blacklisted = true; in writepages_finish()
741 if (atomic_long_dec_return(&fsc->writeback_count) < in writepages_finish()
743 fsc->mount_options->congestion_kb)) in writepages_finish()
784 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_writepages_start() local
800 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in ceph_writepages_start()
809 if (fsc->mount_options->wsize < wsize) in ceph_writepages_start()
810 wsize = fsc->mount_options->wsize; in ceph_writepages_start()
964 pool = fsc->wb_pagevec_pool; in ceph_writepages_start()
988 if (atomic_long_inc_return(&fsc->writeback_count) > in ceph_writepages_start()
990 fsc->mount_options->congestion_kb)) { in ceph_writepages_start()
1029 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1036 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1111 pool = fsc->wb_pagevec_pool; in ceph_writepages_start()
1127 rc = ceph_osdc_start_request(&fsc->client->osdc, req, true); in ceph_writepages_start()
1220 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_update_writeable_page() local
1229 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in ceph_update_writeable_page()
1664 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_uninline_data() local
1720 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1730 err = ceph_osdc_start_request(&fsc->client->osdc, req, false); in ceph_uninline_data()
1732 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1737 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
1772 err = ceph_osdc_start_request(&fsc->client->osdc, req, false); in ceph_uninline_data()
1774 err = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_uninline_data()
1817 struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->vfs_inode); in __ceph_pool_perm_get() local
1818 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_pool_perm_get()
1887 rd_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1905 wr_req = ceph_osdc_alloc_request(&fsc->client->osdc, NULL, in __ceph_pool_perm_get()
1930 err = ceph_osdc_start_request(&fsc->client->osdc, rd_req, false); in __ceph_pool_perm_get()
1933 err2 = ceph_osdc_start_request(&fsc->client->osdc, wr_req, false); in __ceph_pool_perm_get()
1936 err = ceph_osdc_wait_request(&fsc->client->osdc, rd_req); in __ceph_pool_perm_get()
1938 err2 = ceph_osdc_wait_request(&fsc->client->osdc, wr_req); in __ceph_pool_perm_get()
1944 fsc->blacklisted = true; in __ceph_pool_perm_get()
1952 fsc->blacklisted = true; in __ceph_pool_perm_get()