/linux/fs/ceph/ |
H A 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 metrics_file_show() local 152 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_file_show() 175 struct ceph_fs_client *fsc = s->private; in metrics_latency_show() local 176 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_latency_show() 201 struct ceph_fs_client *fsc = s->private; in metrics_size_show() local [all …]
|
H A D | super.c | 47 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(s); in ceph_put_super() local 49 doutc(fsc->client, "begin\n"); in ceph_put_super() 50 ceph_fscrypt_free_dummy_policy(fsc); in ceph_put_super() 51 ceph_mdsc_close_sessions(fsc->mdsc); in ceph_put_super() 52 doutc(fsc->client, "done\n"); in ceph_put_super() 57 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(d_inode(dentry)); in ceph_statfs() local 58 struct ceph_mon_client *monc = &fsc->client->monc; in ceph_statfs() 63 doutc(fsc->client, "begin\n"); in ceph_statfs() 64 if (fsc->mdsc->mdsmap->m_num_data_pg_pools == 1) { in ceph_statfs() 65 data_pool = fsc->mdsc->mdsmap->m_data_pg_pools[0]; in ceph_statfs() [all …]
|
H A D | cache.c | 18 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_fscache_register_inode_cookie() local 21 if (!fsc->fscache) in ceph_fscache_register_inode_cookie() 35 fscache_acquire_cookie(fsc->fscache, 0, in ceph_fscache_register_inode_cookie() 86 int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc) in ceph_fscache_register_fs() argument 88 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs() 89 const char *fscache_uniq = fsc->mount_options->fscache_uniq; in ceph_fscache_register_fs() 99 fsc->fscache = fscache_acquire_volume(name, NULL, NULL, 0); in ceph_fscache_register_fs() 100 if (IS_ERR_OR_NULL(fsc->fscache)) { in ceph_fscache_register_fs() 102 err = fsc->fscache ? PTR_ERR(fsc->fscache) : -EOPNOTSUPP; in ceph_fscache_register_fs() 103 fsc->fscache = NULL; in ceph_fscache_register_fs() [all …]
|
H A D | addr.c | 211 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in finish_netfs_read() local 212 struct ceph_client *cl = fsc->client; in finish_netfs_read() 219 ceph_update_read_metrics(&fsc->mdsc->metric, req->r_start_latency, in finish_netfs_read() 229 fsc->blocklisted = true; in finish_netfs_read() 259 ceph_dec_osd_stopping_blocker(fsc->mdsc); in finish_netfs_read() 326 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_netfs_prepare_read() local 333 rreq->io_streams[0].sreq_max_len = umin(xlen, fsc->mount_options->rsize); in ceph_netfs_prepare_read() 342 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_netfs_issue_read() local 343 struct ceph_client *cl = fsc->client; in ceph_netfs_issue_read() 348 bool sparse = IS_ENCRYPTED(inode) || ceph_test_mount_opt(fsc, SPARSEREAD); in ceph_netfs_issue_read() [all …]
|
H A D | mds_client.c | 415 struct ceph_client *cl = req->r_mdsc->fsc->client; in parse_reply_info_readdir() 575 struct ceph_client *cl = s->s_mdsc->fsc->client; in ceph_parse_deleg_inos() 751 struct ceph_client *cl = s->s_mdsc->fsc->client; in parse_reply_info() 838 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dentry->d_sb); in ceph_wait_on_conflict_unlink() local 839 struct ceph_client *cl = fsc->client; in ceph_wait_on_conflict_unlink() 851 hash_for_each_possible_rcu(fsc->async_unlink_conflict, di, in ceph_wait_on_conflict_unlink() 966 struct ceph_client *cl = mdsc->fsc->client; in register_session() 969 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_FENCE_IO) in register_session() 1002 ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr); in register_session() 1039 doutc(mdsc->fsc->client, "mds%d %p\n", s->s_mds, s); in __unregister_session() [all …]
|
H A D | dir.c | 112 static int note_last_dentry(struct ceph_fs_client *fsc, in note_last_dentry() argument 125 doutc(fsc->client, "'%s'\n", dfi->last_name); in note_last_dentry() 191 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(dir); in __dcache_readdir() local 291 ret = note_last_dentry(fsc, dfi, last->d_name.name, in __dcache_readdir() 321 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_readdir() local 322 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_readdir() 323 struct ceph_client *cl = fsc->client; in ceph_readdir() 367 if (ceph_test_mount_opt(fsc, DCACHE) && in ceph_readdir() 368 !ceph_test_mount_opt(fsc, NOASYNCREADDIR) && in ceph_readdir() 510 err = note_last_dentry(fsc, dfi, rde->name, in ceph_readdir() [all …]
|
H A D | cache.h | 17 int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc); 18 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc); 60 static inline int ceph_fscache_register_fs(struct ceph_fs_client* fsc, in ceph_fscache_register_fs() argument 66 static inline void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument
|
H A D | quota.c | 44 struct super_block *sb = mdsc->fsc->sb; in ceph_handle_quota() 46 struct ceph_client *cl = mdsc->fsc->client; in ceph_handle_quota() 89 struct ceph_client *cl = mdsc->fsc->client; in find_quotarealm_inode() 134 struct ceph_client *cl = mdsc->fsc->client; in lookup_quotarealm_inode() 218 struct ceph_client *cl = mdsc->fsc->client; in get_quota_realm() 330 struct ceph_client *cl = mdsc->fsc->client; in check_quota_exceeded() 490 bool ceph_quota_update_statfs(struct ceph_fs_client *fsc, struct kstatfs *buf) in ceph_quota_update_statfs() argument 492 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_quota_update_statfs() 500 get_quota_realm(mdsc, d_inode(fsc->sb->s_root), QUOTA_GET_MAX_BYTES, in ceph_quota_update_statfs()
|
H A D | export.c | 211 struct ceph_client *cl = mdsc->fsc->client; in __snapfh_to_dentry() 300 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_fh_to_dentry() local 314 doutc(fsc->client, "%llx\n", fh->ino); in ceph_fh_to_dentry() 419 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_fh_to_parent() local 433 doutc(fsc->client, "%llx\n", cfh->parent_ino); in ceph_fh_to_parent() 445 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in __get_snap_name() local 455 strcpy(name, fsc->mount_options->snapdir_name); in __get_snap_name() 468 req = ceph_mdsc_create_request(fsc->mdsc, CEPH_MDS_OP_LSSNAP, in __get_snap_name() 493 err = ceph_mdsc_do_request(fsc->mdsc, NULL, req); in __get_snap_name() 532 doutc(fsc->client, "child dentry %p %p %llx.%llx err=%d\n", child, in __get_snap_name() [all …]
|
H A D | snap.c | 141 doutc(mdsc->fsc->client, "%llx %p\n", realm->ino, realm); in ceph_create_snap_realm() 153 struct ceph_client *cl = mdsc->fsc->client; in __lookup_snap_realm() 192 struct ceph_client *cl = mdsc->fsc->client; in __destroy_snap_realm() 295 struct ceph_client *cl = mdsc->fsc->client; in adjust_snap_realm_parent() 340 struct ceph_client *cl = mdsc->fsc->client; in build_snap_context() 437 struct ceph_client *cl = mdsc->fsc->client; in rebuild_snap_realms() 667 struct ceph_client *cl = mdsc->fsc->client; in __ceph_finish_cap_snap() 725 struct ceph_client *cl = mdsc->fsc->client; in queue_realm_cap_snaps() 783 struct ceph_client *cl = mdsc->fsc->client; in ceph_update_snap_trace() 790 struct ceph_client *client = mdsc->fsc->client; in ceph_update_snap_trace() [all …]
|
H A D | caps.c | 190 doutc(mdsc->fsc->client, in __ceph_unreserve_caps() 206 struct ceph_client *cl = mdsc->fsc->client; in ceph_reserve_caps() 312 struct ceph_client *cl = mdsc->fsc->client; in ceph_unreserve_caps() 334 struct ceph_client *cl = mdsc->fsc->client; in ceph_get_cap() 389 struct ceph_client *cl = mdsc->fsc->client; in ceph_put_cap() 414 void ceph_reservation_status(struct ceph_fs_client *fsc, in ceph_reservation_status() argument 418 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_reservation_status() 501 struct ceph_mount_options *opt = mdsc->fsc->mount_options; in __cap_set_timeouts() 505 doutc(mdsc->fsc->client, "%p %llx.%llx %lu\n", inode, in __cap_set_timeouts() 522 doutc(mdsc->fsc->client, "%p %llx.%llx flags 0x%lx at %lu\n", in __cap_delay_requeue() [all …]
|
H A D | xattr.c | 60 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb); in ceph_vxattrcb_layout() local 61 struct ceph_client *cl = fsc->client; in ceph_vxattrcb_layout() 62 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout() 165 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb); in ceph_vxattrcb_layout_pool() local 166 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout_pool() 317 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb); in ceph_vxattrcb_cluster_fsid() local 319 return ceph_fmt_xattr(val, size, "%pU", &fsc->client->fsid); in ceph_vxattrcb_cluster_fsid() 325 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb); in ceph_vxattrcb_client_id() local 328 ceph_client_gid(fsc->client)); in ceph_vxattrcb_client_id() 1111 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(inode->i_sb); in ceph_sync_setxattr() local [all …]
|
H A D | super.h | 54 #define ceph_set_mount_opt(fsc, opt) \ argument 55 (fsc)->mount_options->flags |= CEPH_MOUNT_OPT_##opt 56 #define ceph_clear_mount_opt(fsc, opt) \ argument 57 (fsc)->mount_options->flags &= ~CEPH_MOUNT_OPT_##opt 58 #define ceph_test_mount_opt(fsc, opt) \ argument 59 (!!((fsc)->mount_options->flags & CEPH_MOUNT_OPT_##opt)) 1115 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_inode_is_shutdown() local 1116 int state = READ_ONCE(fsc->mount_state); in ceph_inode_is_shutdown() 1427 extern bool ceph_quota_update_statfs(struct ceph_fs_client *fsc,
|
H A D | inode.c | 135 struct ceph_client *cl = mdsc->fsc->client; in ceph_get_inode() 568 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_alloc_inode() local 576 doutc(fsc->client, "%p\n", &ci->netfs.inode); in ceph_alloc_inode() 906 struct ceph_client *cl = mdsc->fsc->client; in decode_encrypted_symlink() 946 struct ceph_client *cl = mdsc->fsc->client; in ceph_fill_inode() 1524 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_fill_trace() local 1525 struct ceph_client *cl = fsc->client; in ceph_fill_trace() 1658 fsc->mount_options->snapdir_name, in ceph_fill_trace() 1808 struct ceph_client *cl = session->s_mdsc->fsc->client; in readdir_prepopulate_inodes_only() 1902 struct ceph_client *cl = session->s_mdsc->fsc->client; in ceph_readdir_prepopulate() [all …]
|
H A D | crypto.h | 99 void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc); 179 static inline void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc) in ceph_fscrypt_free_dummy_policy() argument
|
H A D | mds_client.h | 441 struct ceph_fs_client *fsc; member 562 extern int ceph_mdsc_init(struct ceph_fs_client *fsc); 565 extern void ceph_mdsc_destroy(struct ceph_fs_client *fsc);
|
H A D | ioctl.c | 248 struct ceph_client *cl = mdsc->fsc->client; in ceph_ioctl_lazyio() 362 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_ioctl() local 365 doutc(fsc->client, "file %p %p %llx.%llx cmd %s arg %lu\n", file, in ceph_ioctl()
|
H A D | locks.c | 80 struct ceph_client *cl = mdsc->fsc->client; in ceph_lock_message() 162 struct ceph_client *cl = mdsc->fsc->client; in ceph_lock_wait_for_completion()
|
H A D | crypto.c | 148 void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc) in ceph_fscrypt_free_dummy_policy() argument 150 fscrypt_free_dummy_policy(&fsc->fsc_dummy_enc_policy); in ceph_fscrypt_free_dummy_policy()
|
/linux/fs/fuse/ |
H A D | inode.c | 184 static int fuse_reconfigure(struct fs_context *fsc) in fuse_reconfigure() argument 186 struct super_block *sb = fsc->root->d_sb; in fuse_reconfigure() 189 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure() 753 static int fuse_parse_param(struct fs_context *fsc, struct fs_parameter *param) in fuse_parse_param() argument 756 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_parse_param() 761 if (fsc->purpose == FS_CONTEXT_FOR_RECONFIGURE) { in fuse_parse_param() 766 if (fsc->oldapi) in fuse_parse_param() 769 return invalfc(fsc, "No changes allowed in reconfigure"); in fuse_parse_param() 772 opt = fs_parse(fsc, fuse_fs_parameters, param, &result); in fuse_parse_param() 778 if (fsc->source) in fuse_parse_param() [all …]
|
/linux/net/sched/ |
H A D | sch_hfsc.c | 889 hfsc_change_fsc(struct hfsc_class *cl, struct tc_service_curve *fsc) in hfsc_change_fsc() argument 891 sc2isc(fsc, &cl->cl_fsc); in hfsc_change_fsc() 929 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; in hfsc_change_class() local 948 fsc = nla_data(tb[TCA_HFSC_FSC]); in hfsc_change_class() 949 if (fsc->m1 == 0 && fsc->m2 == 0) in hfsc_change_class() 950 fsc = NULL; in hfsc_change_class() 986 if (fsc != NULL) in hfsc_change_class() 987 hfsc_change_fsc(cl, fsc); in hfsc_change_class() 1028 if (rsc == NULL && fsc == NULL) in hfsc_change_class() 1053 if (fsc != NULL) in hfsc_change_class() [all …]
|
/linux/drivers/scsi/esas2r/ |
H A 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/drivers/net/fddi/skfp/ |
H A 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/drivers/media/pci/cx18/ |
H A 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/arch/arm64/kvm/ |
H A D | nested.c | 105 static u32 compute_fsc(int level, u32 fsc) in compute_fsc() argument 107 return fsc | (level & 0x3); in compute_fsc() 110 static int esr_s2_fault(struct kvm_vcpu *vcpu, int level, u32 fsc) in esr_s2_fault() argument 115 esr |= compute_fsc(level, fsc); in esr_s2_fault()
|