| /Linux-v5.15/fs/ceph/ |
| D | super.c | 44 struct ceph_fs_client *fsc = ceph_sb_to_client(s); in ceph_put_super() local 47 ceph_mdsc_close_sessions(fsc->mdsc); in ceph_put_super() 52 struct ceph_fs_client *fsc = ceph_inode_to_client(d_inode(dentry)); in ceph_statfs() local 53 struct ceph_mon_client *monc = &fsc->client->monc; in ceph_statfs() 59 if (fsc->mdsc->mdsmap->m_num_data_pg_pools == 1) { in ceph_statfs() 60 data_pool = fsc->mdsc->mdsmap->m_data_pg_pools[0]; in ceph_statfs() 90 if (ceph_test_mount_opt(fsc, NOQUOTADF) || in ceph_statfs() 91 !ceph_quota_update_statfs(fsc, buf)) { in ceph_statfs() 114 struct ceph_fs_client *fsc = ceph_sb_to_client(sb); in ceph_sync_fs() local 118 ceph_flush_dirty_caps(fsc->mdsc); in ceph_sync_fs() [all …]
|
| D | debugfs.c | 28 struct ceph_fs_client *fsc = s->private; in mdsmap_show() local 31 if (!fsc->mdsc || !fsc->mdsc->mdsmap) in mdsmap_show() 33 mdsmap = fsc->mdsc->mdsmap; in mdsmap_show() 54 struct ceph_fs_client *fsc = s->private; in mdsc_show() local 55 struct ceph_mds_client *mdsc = fsc->mdsc; in mdsc_show() 151 struct ceph_fs_client *fsc = s->private; in metric_show() local 152 struct ceph_mds_client *mdsc = fsc->mdsc; in metric_show() 254 struct ceph_fs_client *fsc = s->private; in caps_show() local 255 struct ceph_mds_client *mdsc = fsc->mdsc; in caps_show() 259 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show() [all …]
|
| D | cache.c | 53 int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc) in ceph_fscache_register_fs() argument 55 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs() 56 const char *fscache_uniq = fsc->mount_options->fscache_uniq; in ceph_fscache_register_fs() 88 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs() 92 fsc, 0, true); in ceph_fscache_register_fs() 94 if (fsc->fscache) { in ceph_fscache_register_fs() 95 ent->fscache = fsc->fscache; in ceph_fscache_register_fs() 141 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_fscache_register_inode_cookie() local 145 if (!fsc->fscache) in ceph_fscache_register_inode_cookie() 158 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie() [all …]
|
| D | addr.c | 200 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_netfs_clamp_length() local 208 subreq->len = min(xlen, fsc->mount_options->rsize); in ceph_netfs_clamp_length() 214 struct ceph_fs_client *fsc = ceph_inode_to_client(req->r_inode); in finish_netfs_read() local 220 ceph_update_read_metrics(&fsc->mdsc->metric, req->r_start_latency, in finish_netfs_read() 230 fsc->blocklisted = true; in finish_netfs_read() 247 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_netfs_issue_op() local 256 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino, subreq->start, &len, in ceph_netfs_issue_op() 258 CEPH_OSD_FLAG_READ | fsc->client->osdc.client->options->read_from_replica, in ceph_netfs_issue_op() 487 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in writepage_nounlock() local 493 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock() [all …]
|
| D | cache.h | 21 int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc); 22 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc); 70 static inline int ceph_fscache_register_fs(struct ceph_fs_client* fsc, in ceph_fscache_register_fs() argument 76 static inline void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument
|
| D | file.c | 341 struct ceph_fs_client *fsc = ceph_sb_to_client(inode->i_sb); in ceph_open() local 342 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_open() 665 struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); in ceph_atomic_open() local 666 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_atomic_open() 670 bool try_async = ceph_test_mount_opt(fsc, ASYNC_DIROPS); in ceph_atomic_open() 843 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_sync_read() local 844 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_sync_read() 903 ceph_update_read_metrics(&fsc->mdsc->metric, in ceph_sync_read() 945 fsc->blocklisted = true; in ceph_sync_read() 1181 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_direct_read_write() local [all …]
|
| D | mds_client.c | 742 ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr); in register_session() 1065 if (!dir || dir->i_sb != mdsc->fsc->sb) { in __choose_mds() 1271 struct ceph_options *opt = mdsc->fsc->client->options; in create_session_open_msg() 1272 struct ceph_mount_options *fsopt = mdsc->fsc->mount_options; in create_session_open_msg() 1619 struct ceph_fs_client *fsc = (struct ceph_fs_client *)arg; in remove_session_caps_cb() local 1620 struct ceph_mds_client *mdsc = fsc->mdsc; in remove_session_caps_cb() 1634 if (READ_ONCE(fsc->mount_state) >= CEPH_MOUNT_SHUTDOWN) { in remove_session_caps_cb() 1725 struct ceph_fs_client *fsc = session->s_mdsc->fsc; in remove_session_caps() local 1726 struct super_block *sb = fsc->sb; in remove_session_caps() 1730 ceph_iterate_session_caps(session, remove_session_caps_cb, fsc); in remove_session_caps() [all …]
|
| D | quota.c | 41 struct super_block *sb = mdsc->fsc->sb; in ceph_handle_quota() 473 bool ceph_quota_update_statfs(struct ceph_fs_client *fsc, struct kstatfs *buf) in ceph_quota_update_statfs() argument 475 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_quota_update_statfs() 483 realm = get_quota_realm(mdsc, d_inode(fsc->sb->s_root), true); in ceph_quota_update_statfs()
|
| D | dir.c | 310 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_readdir() local 311 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_readdir() 348 if (ceph_test_mount_opt(fsc, DCACHE) && in ceph_readdir() 349 !ceph_test_mount_opt(fsc, NOASYNCREADDIR) && in ceph_readdir() 673 struct ceph_fs_client *fsc = ceph_sb_to_client(dentry->d_sb); in ceph_handle_snapdir() local 678 strcmp(dentry->d_name.name, fsc->mount_options->snapdir_name) == 0) { in ceph_handle_snapdir() 741 struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); in ceph_lookup() local 762 fsc->mount_options->snapdir_name, in ceph_lookup() 765 ceph_test_mount_opt(fsc, DCACHE) && in ceph_lookup() 1139 struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); in ceph_unlink() local [all …]
|
| D | xattr.c | 60 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_vxattrcb_layout() local 61 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout() 164 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_vxattrcb_layout_pool() local 165 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout_pool() 316 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_vxattrcb_cluster_fsid() local 318 return ceph_fmt_xattr(val, size, "%pU", &fsc->client->fsid); in ceph_vxattrcb_cluster_fsid() 324 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_vxattrcb_client_id() local 327 ceph_client_gid(fsc->client)); in ceph_vxattrcb_client_id() 1047 struct ceph_fs_client *fsc = ceph_sb_to_client(inode->i_sb); in ceph_sync_setxattr() local 1050 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_sync_setxattr() [all …]
|
| D | super.h | 53 #define ceph_set_mount_opt(fsc, opt) \ argument 54 (fsc)->mount_options->flags |= CEPH_MOUNT_OPT_##opt 55 #define ceph_clear_mount_opt(fsc, opt) \ argument 56 (fsc)->mount_options->flags &= ~CEPH_MOUNT_OPT_##opt 57 #define ceph_test_mount_opt(fsc, opt) \ argument 58 (!!((fsc)->mount_options->flags & CEPH_MOUNT_OPT_##opt)) 1288 extern bool ceph_quota_update_statfs(struct ceph_fs_client *fsc,
|
| D | mds_client.h | 383 struct ceph_fs_client *fsc; member 495 extern int ceph_mdsc_init(struct ceph_fs_client *fsc); 498 extern void ceph_mdsc_destroy(struct ceph_fs_client *fsc);
|
| D | export.c | 430 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in __get_snap_name() local 440 strcpy(name, fsc->mount_options->snapdir_name); in __get_snap_name() 453 req = ceph_mdsc_create_request(fsc->mdsc, CEPH_MDS_OP_LSSNAP, in __get_snap_name() 478 err = ceph_mdsc_do_request(fsc->mdsc, NULL, req); in __get_snap_name()
|
| D | caps.c | 406 void ceph_reservation_status(struct ceph_fs_client *fsc, in ceph_reservation_status() argument 410 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_reservation_status() 492 struct ceph_mount_options *opt = mdsc->fsc->mount_options; in __cap_set_timeouts() 922 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in __ceph_caps_issued_mask_metric() local 927 ceph_update_cap_hit(&fsc->mdsc->metric); in __ceph_caps_issued_mask_metric() 929 ceph_update_cap_mis(&fsc->mdsc->metric); in __ceph_caps_issued_mask_metric() 1181 struct ceph_fs_client *fsc; in ceph_remove_cap() local 1191 fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_remove_cap() 1194 !fsc->blocklisted && in ceph_remove_cap() 1195 READ_ONCE(fsc->mount_state) != CEPH_MOUNT_SHUTDOWN); in ceph_remove_cap() [all …]
|
| D | inode.c | 1271 struct ceph_fs_client *fsc = ceph_sb_to_client(sb); in ceph_fill_trace() local 1378 fsc->mount_options->snapdir_name, in ceph_fill_trace() 1827 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_queue_inode_work() local 1832 if (queue_work(fsc->inode_wq, &ci->i_work)) { in ceph_queue_inode_work() 1844 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_do_invalidate_pages() local 1850 if (READ_ONCE(fsc->mount_state) >= CEPH_MOUNT_SHUTDOWN) { in ceph_do_invalidate_pages() 2214 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_setattr() local 2225 attr->ia_size > max(i_size_read(inode), fsc->max_file_size)) in ceph_setattr() 2247 struct ceph_fs_client *fsc = ceph_sb_to_client(inode->i_sb); in __ceph_do_getattr() local 2248 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_do_getattr()
|
| /Linux-v5.15/fs/xfs/scrub/ |
| D | fscounters.c | 116 struct xchk_fscounters *fsc; in xchk_setup_fscounters() local 122 fsc = sc->buf; in xchk_setup_fscounters() 124 xfs_icount_range(sc->mp, &fsc->icount_min, &fsc->icount_max); in xchk_setup_fscounters() 145 struct xchk_fscounters *fsc, in xchk_fscount_btreeblks() argument 158 fsc->fdblocks += blocks - 1; in xchk_fscount_btreeblks() 163 fsc->fdblocks += blocks - 1; in xchk_fscount_btreeblks() 179 struct xchk_fscounters *fsc) in xchk_fscount_aggregate_agcounts() argument 189 fsc->icount = 0; in xchk_fscount_aggregate_agcounts() 190 fsc->ifree = 0; in xchk_fscount_aggregate_agcounts() 191 fsc->fdblocks = 0; in xchk_fscount_aggregate_agcounts() [all …]
|
| /Linux-v5.15/fs/fuse/ |
| D | inode.c | 140 static int fuse_reconfigure(struct fs_context *fsc) in fuse_reconfigure() argument 142 struct super_block *sb = fsc->root->d_sb; in fuse_reconfigure() 145 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure() 620 static int fuse_parse_param(struct fs_context *fsc, struct fs_parameter *param) in fuse_parse_param() argument 623 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_parse_param() 626 if (fsc->purpose == FS_CONTEXT_FOR_RECONFIGURE) { in fuse_parse_param() 631 if (fsc->oldapi) in fuse_parse_param() 634 return invalfc(fsc, "No changes allowed in reconfigure"); in fuse_parse_param() 637 opt = fs_parse(fsc, fuse_fs_parameters, param, &result); in fuse_parse_param() 643 if (fsc->source) in fuse_parse_param() [all …]
|
| D | virtio_fs.c | 100 static int virtio_fs_parse_param(struct fs_context *fsc, in virtio_fs_parse_param() argument 104 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_parse_param() 107 opt = fs_parse(fsc, virtio_fs_parameters, param, &result); in virtio_fs_parse_param() 122 static void virtio_fs_free_fsc(struct fs_context *fsc) in virtio_fs_free_fsc() argument 124 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_free_fsc() 1295 static int virtio_fs_fill_super(struct super_block *sb, struct fs_context *fsc) in virtio_fs_fill_super() argument 1300 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_fill_super() 1407 struct fs_context *fsc) in virtio_fs_test_super() argument 1409 struct fuse_mount *fsc_fm = fsc->s_fs_info; in virtio_fs_test_super() 1415 static int virtio_fs_get_tree(struct fs_context *fsc) in virtio_fs_get_tree() argument [all …]
|
| D | control.c | 331 static int fuse_ctl_fill_super(struct super_block *sb, struct fs_context *fsc) in fuse_ctl_fill_super() argument 357 static int fuse_ctl_get_tree(struct fs_context *fsc) in fuse_ctl_get_tree() argument 359 return get_tree_single(fsc, fuse_ctl_fill_super); in fuse_ctl_get_tree() 366 static int fuse_ctl_init_fs_context(struct fs_context *fsc) in fuse_ctl_init_fs_context() argument 368 fsc->ops = &fuse_ctl_context_ops; in fuse_ctl_init_fs_context()
|
| D | dir.c | 311 struct fs_context *fsc; in fuse_dentry_automount() local 315 fsc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); in fuse_dentry_automount() 316 if (IS_ERR(fsc)) in fuse_dentry_automount() 317 return ERR_CAST(fsc); in fuse_dentry_automount() 320 fsc->fs_private = mp_fi; in fuse_dentry_automount() 323 mnt = fc_mount(fsc); in fuse_dentry_automount() 327 put_fs_context(fsc); in fuse_dentry_automount()
|
| /Linux-v5.15/net/sched/ |
| D | sch_hfsc.c | 890 hfsc_change_fsc(struct hfsc_class *cl, struct tc_service_curve *fsc) in hfsc_change_fsc() argument 892 sc2isc(fsc, &cl->cl_fsc); in hfsc_change_fsc() 922 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; in hfsc_change_class() local 941 fsc = nla_data(tb[TCA_HFSC_FSC]); in hfsc_change_class() 942 if (fsc->m1 == 0 && fsc->m2 == 0) in hfsc_change_class() 943 fsc = NULL; in hfsc_change_class() 979 if (fsc != NULL) in hfsc_change_class() 980 hfsc_change_fsc(cl, fsc); in hfsc_change_class() 1021 if (rsc == NULL && fsc == NULL) in hfsc_change_class() 1048 if (fsc != NULL) in hfsc_change_class() [all …]
|
| /Linux-v5.15/drivers/scsi/esas2r/ |
| D | esas2r_flash.c | 851 struct esas2r_ioctlfs_command *fsc = &fs->command; in esas2r_process_fs_ioctl() local 863 if (fsc->command >= cmdcnt) { in esas2r_process_fs_ioctl() 868 func = cmd_to_fls_func[fsc->command]; in esas2r_process_fs_ioctl() 874 if (fsc->command != ESAS2R_FS_CMD_CANCEL) { in esas2r_process_fs_ioctl() 900 datalen = le32_to_cpu(fsc->length); in esas2r_process_fs_ioctl() 904 fsc->checksum, in esas2r_process_fs_ioctl() 905 le32_to_cpu(fsc->flash_addr), in esas2r_process_fs_ioctl()
|
| /Linux-v5.15/drivers/net/fddi/skfp/ |
| D | smt.c | 84 static void smt_fill_fsc(struct s_smc *smc, struct smt_p_fsc *fsc); 941 smt_fill_fsc(smc,&nif->fsc) ; /* set frame status cap. */ in smt_send_nif() 1443 static void smt_fill_fsc(struct s_smc *smc, struct smt_p_fsc *fsc) in smt_fill_fsc() argument 1446 SMTSETPARA(fsc,SMT_P_FSC) ; in smt_fill_fsc() 1447 fsc->fsc_pad0 = 0 ; in smt_fill_fsc() 1448 fsc->fsc_mac_index = INDEX_MAC ; /* this is MIB ; MIB is NOT in smt_fill_fsc() 1451 fsc->fsc_pad1 = 0 ; in smt_fill_fsc() 1452 fsc->fsc_value = FSC_TYPE0 ; /* "normal" node */ in smt_fill_fsc() 1454 fsc->fsc_mac_index = smt_swap_short(INDEX_MAC) ; in smt_fill_fsc() 1455 fsc->fsc_value = smt_swap_short(FSC_TYPE0) ; in smt_fill_fsc()
|
| /Linux-v5.15/drivers/media/pci/cx18/ |
| D | cx18-av-core.c | 447 int fsc, pll; in cx18_av_std_setup() local 463 fsc = tmp >> 13; in cx18_av_std_setup() 466 fsc / 1000000, fsc % 1000000); in cx18_av_std_setup()
|
| /Linux-v5.15/fs/cifs/ |
| D | fs_context.h | 222 bool fsc:1; /* enable fscache */ member
|