Home
last modified time | relevance | path

Searched refs:fsc (Results 1 – 25 of 44) sorted by relevance

12

/linux/fs/xfs/scrub/
H A Dfscounters.c155 struct xchk_fscounters *fsc = sc->buf; in xchk_fscounters_freeze() local
173 fsc->frozen = true; in xchk_fscounters_freeze()
182 struct xchk_fscounters *fsc = buf; in xchk_fscounters_cleanup() local
183 struct xfs_scrub *sc = fsc->sc; in xchk_fscounters_cleanup()
186 if (!fsc->frozen) in xchk_fscounters_cleanup()
193 fsc->frozen = false; in xchk_fscounters_cleanup()
200 struct xchk_fscounters *fsc; in xchk_setup_fscounters() local
214 fsc = sc->buf; in xchk_setup_fscounters()
215 fsc->sc = sc; in xchk_setup_fscounters()
217 xfs_icount_range(sc->mp, &fsc->icount_min, &fsc->icount_max); in xchk_setup_fscounters()
[all …]
H A Dfscounters_repair.c51 struct xchk_fscounters *fsc = sc->buf; in xrep_fscounters() local
58 if (!fsc->frozen) { in xrep_fscounters()
59 ASSERT(fsc->frozen); in xrep_fscounters()
63 trace_xrep_reset_counters(mp, fsc); in xrep_fscounters()
65 percpu_counter_set(&mp->m_icount, fsc->icount); in xrep_fscounters()
66 percpu_counter_set(&mp->m_ifree, fsc->ifree); in xrep_fscounters()
67 xfs_set_freecounter(mp, XC_FREE_BLOCKS, fsc->fdblocks); in xrep_fscounters()
79 fsc->frextents - fsc->frextents_delayed); in xrep_fscounters()
81 mp->m_sb.sb_frextents = fsc->frextents; in xrep_fscounters()
/linux/fs/ceph/
H A Ddebugfs.c28 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()
149 struct ceph_fs_client *fsc = s->private; in metrics_file_show() local
150 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_file_show()
173 struct ceph_fs_client *fsc = s->private; in metrics_latency_show() local
174 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_latency_show()
199 struct ceph_fs_client *fsc = s->private; in metrics_size_show() local
[all …]
H A Dsuper.c50 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(s); in ceph_put_super() local
52 doutc(fsc->client, "begin\n"); in ceph_put_super()
53 ceph_fscrypt_free_dummy_policy(fsc); in ceph_put_super()
54 ceph_mdsc_close_sessions(fsc->mdsc); in ceph_put_super()
55 doutc(fsc->client, "done\n"); in ceph_put_super()
60 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(d_inode(dentry)); in ceph_statfs() local
61 struct ceph_mon_client *monc = &fsc->client->monc; in ceph_statfs()
66 doutc(fsc->client, "begin\n"); in ceph_statfs()
67 if (fsc->mdsc->mdsmap->m_num_data_pg_pools == 1) { in ceph_statfs()
68 data_pool = fsc->mdsc->mdsmap->m_data_pg_pools[0]; in ceph_statfs()
[all …]
H A Dcache.c18 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 Daddr.c214 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in finish_netfs_read() local
215 struct ceph_client *cl = fsc->client; in finish_netfs_read()
222 ceph_update_read_metrics(&fsc->mdsc->metric, req->r_start_latency, in finish_netfs_read()
234 fsc->blocklisted = true; in finish_netfs_read()
269 ceph_dec_osd_stopping_blocker(fsc->mdsc); in finish_netfs_read()
339 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_netfs_prepare_read() local
346 rreq->io_streams[0].sreq_max_len = umin(xlen, fsc->mount_options->rsize); in ceph_netfs_prepare_read()
355 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_netfs_issue_read() local
356 struct ceph_client *cl = fsc->client; in ceph_netfs_issue_read()
361 bool sparse = IS_ENCRYPTED(inode) || ceph_test_mount_opt(fsc, SPARSEREAD); in ceph_netfs_issue_read()
[all …]
H A Dmds_client.c416 struct ceph_client *cl = req->r_mdsc->fsc->client; in parse_reply_info_readdir()
576 struct ceph_client *cl = s->s_mdsc->fsc->client; in ceph_parse_deleg_inos()
752 struct ceph_client *cl = s->s_mdsc->fsc->client; in parse_reply_info()
839 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dentry->d_sb); in ceph_wait_on_conflict_unlink() local
840 struct ceph_client *cl = fsc->client; in ceph_wait_on_conflict_unlink()
852 hash_for_each_possible_rcu(fsc->async_unlink_conflict, di, in ceph_wait_on_conflict_unlink()
967 struct ceph_client *cl = mdsc->fsc->client; in register_session()
970 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_FENCE_IO) in register_session()
1004 ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr); in register_session()
1041 doutc(mdsc->fsc->client, "mds%d %p\n", s->s_mds, s); in __unregister_session()
[all …]
H A Ddir.c112 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()
192 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(dir); in __dcache_readdir() local
292 ret = note_last_dentry(fsc, dfi, last->d_name.name, in __dcache_readdir()
322 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_readdir() local
323 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_readdir()
324 struct ceph_client *cl = fsc->client; in ceph_readdir()
368 if (ceph_test_mount_opt(fsc, DCACHE) && in ceph_readdir()
369 !ceph_test_mount_opt(fsc, NOASYNCREADDIR) && in ceph_readdir()
510 err = note_last_dentry(fsc, dfi, rde->name, in ceph_readdir()
[all …]
H A Dcache.h17 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 Dexport.c216 struct ceph_client *cl = mdsc->fsc->client; in __snapfh_to_dentry()
305 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_fh_to_dentry() local
319 doutc(fsc->client, "%llx\n", fh->ino); in ceph_fh_to_dentry()
424 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_fh_to_parent() local
438 doutc(fsc->client, "%llx\n", cfh->parent_ino); in ceph_fh_to_parent()
450 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in __get_snap_name() local
465 strscpy(name, fsc->mount_options->snapdir_name, in __get_snap_name()
479 req = ceph_mdsc_create_request(fsc->mdsc, CEPH_MDS_OP_LSSNAP, in __get_snap_name()
504 err = ceph_mdsc_do_request(fsc->mdsc, NULL, req); in __get_snap_name()
543 doutc(fsc->client, "child dentry %p %p %llx.%llx err=%d\n", child, in __get_snap_name()
[all …]
H A Dsnap.c141 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 Dfile.c25 struct ceph_client *cl = mdsc->fsc->client; in ceph_flags_sys2wire()
303 struct ceph_client *cl = mdsc->fsc->client; in ceph_renew_caps()
362 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(inode->i_sb); in ceph_open() local
363 struct ceph_client *cl = fsc->client; in ceph_open()
364 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_open()
599 struct ceph_client *cl = mdsc->fsc->client; in ceph_async_create_cb()
668 struct ceph_client *cl = mdsc->fsc->client; in ceph_finish_async_create()
778 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dir->i_sb); in ceph_atomic_open() local
779 struct ceph_client *cl = fsc->client; in ceph_atomic_open()
780 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_atomic_open()
[all …]
H A Dcaps.c191 doutc(mdsc->fsc->client, in __ceph_unreserve_caps()
207 struct ceph_client *cl = mdsc->fsc->client; in ceph_reserve_caps()
313 struct ceph_client *cl = mdsc->fsc->client; in ceph_unreserve_caps()
335 struct ceph_client *cl = mdsc->fsc->client; in ceph_get_cap()
390 struct ceph_client *cl = mdsc->fsc->client; in ceph_put_cap()
415 void ceph_reservation_status(struct ceph_fs_client *fsc, in ceph_reservation_status() argument
419 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_reservation_status()
502 struct ceph_mount_options *opt = mdsc->fsc->mount_options; in __cap_set_timeouts()
506 doutc(mdsc->fsc->client, "%p %llx.%llx %lu\n", inode, in __cap_set_timeouts()
523 doutc(mdsc->fsc->client, "%p %llx.%llx flags 0x%lx at %lu\n", in __cap_delay_requeue()
[all …]
H A Dxattr.c60 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()
315 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb); in ceph_vxattrcb_cluster_fsid() local
317 return ceph_fmt_xattr(val, size, "%pU", &fsc->client->fsid); in ceph_vxattrcb_cluster_fsid()
323 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb); in ceph_vxattrcb_client_id() local
326 ceph_client_gid(fsc->client)); in ceph_vxattrcb_client_id()
1109 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(inode->i_sb); in ceph_sync_setxattr() local
[all …]
H A Dsuper.h54 #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))
1130 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_inode_is_shutdown() local
1131 int state = READ_ONCE(fsc->mount_state); in ceph_inode_is_shutdown()
1441 extern bool ceph_quota_update_statfs(struct ceph_fs_client *fsc,
H A Dinode.c181 struct ceph_client *cl = mdsc->fsc->client; in ceph_get_inode()
614 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_alloc_inode() local
622 doutc(fsc->client, "%p\n", &ci->netfs.inode); in ceph_alloc_inode()
942 struct ceph_client *cl = mdsc->fsc->client; in decode_encrypted_symlink()
982 struct ceph_client *cl = mdsc->fsc->client; in ceph_fill_inode()
1560 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(sb); in ceph_fill_trace() local
1561 struct ceph_client *cl = fsc->client; in ceph_fill_trace()
1702 fsc->mount_options->snapdir_name, in ceph_fill_trace()
1866 struct ceph_client *cl = session->s_mdsc->fsc->client; in readdir_prepopulate_inodes_only()
1965 struct ceph_client *cl = session->s_mdsc->fsc->client; in ceph_readdir_prepopulate()
[all …]
H A Dcrypto.h95 void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc);
171 static inline void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc) in ceph_fscrypt_free_dummy_policy() argument
H A Dmds_client.h443 struct ceph_fs_client *fsc; member
567 extern int ceph_mdsc_init(struct ceph_fs_client *fsc);
570 extern void ceph_mdsc_destroy(struct ceph_fs_client *fsc);
/linux/fs/fuse/
H A Dinode.c201 static int fuse_reconfigure(struct fs_context *fsc) in fuse_reconfigure() argument
203 struct super_block *sb = fsc->root->d_sb; in fuse_reconfigure()
206 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure()
803 static int fuse_parse_param(struct fs_context *fsc, struct fs_parameter *param) in fuse_parse_param() argument
806 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_parse_param()
811 if (fsc->purpose == FS_CONTEXT_FOR_RECONFIGURE) { in fuse_parse_param()
816 if (fsc->oldapi) in fuse_parse_param()
819 return invalfc(fsc, "No changes allowed in reconfigure"); in fuse_parse_param()
822 opt = fs_parse(fsc, fuse_fs_parameters, param, &result); in fuse_parse_param()
828 if (fsc->source) in fuse_parse_param()
[all …]
H A Dvirtio_fs.c121 static int virtio_fs_parse_param(struct fs_context *fsc, in virtio_fs_parse_param() argument
125 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_parse_param()
128 opt = fs_parse(fsc, virtio_fs_parameters, param, &result); in virtio_fs_parse_param()
146 static void virtio_fs_free_fsc(struct fs_context *fsc) in virtio_fs_free_fsc() argument
148 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_free_fsc()
1540 static int virtio_fs_fill_super(struct super_block *sb, struct fs_context *fsc) in virtio_fs_fill_super() argument
1545 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_fill_super()
1652 struct fs_context *fsc) in virtio_fs_test_super() argument
1654 struct fuse_mount *fsc_fm = fsc->s_fs_info; in virtio_fs_test_super()
1660 static int virtio_fs_get_tree(struct fs_context *fsc) in virtio_fs_get_tree() argument
[all …]
H A Dcontrol.c308 static int fuse_ctl_fill_super(struct super_block *sb, struct fs_context *fsc) in fuse_ctl_fill_super() argument
334 static int fuse_ctl_get_tree(struct fs_context *fsc) in fuse_ctl_get_tree() argument
336 return get_tree_single(fsc, fuse_ctl_fill_super); in fuse_ctl_get_tree()
343 static int fuse_ctl_init_fs_context(struct fs_context *fsc) in fuse_ctl_init_fs_context() argument
345 fsc->ops = &fuse_ctl_context_ops; in fuse_ctl_init_fs_context()
/linux/tools/testing/selftests/kvm/arm64/
H A Dat.c29 u64 par, fsc; \
39 fsc = FIELD_GET(SYS_PAR_EL1_FST, par); \
45 __GUEST_ASSERT(fsc == ESR_ELx_FSC_ACCESS_L(3), \
/linux/drivers/iio/dac/
H A Dad9739a.c204 unsigned int i = 0, lock, fsc; in ad9739a_init() local
275 ret = device_property_read_u32(dev, "adi,full-scale-microamp", &fsc); in ad9739a_init()
280 if (!in_range(fsc, AD9739A_FSC_MIN, AD9739A_FSC_RANGE)) in ad9739a_init()
283 fsc, AD9739A_FSC_MIN, AD9739A_FSC_MAX); in ad9739a_init()
290 fsc_raw = DIV_ROUND_CLOSEST(fsc * 10 - 85800, 226); in ad9739a_init()
/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dfault.h17 u64 fsc = esr & ESR_ELx_FSC; in __fault_safe_to_translate() local
22 return !(fsc == ESR_ELx_FSC_EXTABT && (esr & ESR_ELx_FnV)); in __fault_safe_to_translate()
/linux/net/sched/
H A Dsch_hfsc.c881 hfsc_change_fsc(struct hfsc_class *cl, struct tc_service_curve *fsc) in hfsc_change_fsc() argument
883 sc2isc(fsc, &cl->cl_fsc); in hfsc_change_fsc()
921 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; in hfsc_change_class() local
940 fsc = nla_data(tb[TCA_HFSC_FSC]); in hfsc_change_class()
941 if (fsc->m1 == 0 && fsc->m2 == 0) in hfsc_change_class()
942 fsc = NULL; in hfsc_change_class()
979 if (fsc != NULL) in hfsc_change_class()
980 hfsc_change_fsc(cl, fsc); in hfsc_change_class()
1025 if (rsc == NULL && fsc == NULL) in hfsc_change_class()
1052 if (fsc != NULL) in hfsc_change_class()
[all …]

12