| /linux-6.15/fs/xfs/scrub/ |
| H A D | fscounters.c | 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() 304 fsc->icount = 0; in xchk_fscount_aggregate_agcounts() 305 fsc->ifree = 0; in xchk_fscount_aggregate_agcounts() 363 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks, in xchk_fscount_aggregate_agcounts() 368 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max || in xchk_fscount_aggregate_agcounts() 370 fsc->ifree > fsc->icount_max) in xchk_fscount_aggregate_agcounts() 378 if (fsc->ifree > fsc->icount) { in xchk_fscount_aggregate_agcounts() 547 if (icount < fsc->icount_min || icount > fsc->icount_max) in xchk_fscounters() [all …]
|
| H A D | fscounters_repair.c | 51 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-6.15/fs/ceph/ |
| H A D | debugfs.c | 31 if (!fsc->mdsc || !fsc->mdsc->mdsmap) in mdsmap_show() 422 fsc, in ceph_fs_debugfs_init() 427 fsc->debugfs_bdi = in ceph_fs_debugfs_init() 435 fsc, in ceph_fs_debugfs_init() 441 fsc, in ceph_fs_debugfs_init() 447 fsc, in ceph_fs_debugfs_init() 453 fsc, in ceph_fs_debugfs_init() 459 fsc, in ceph_fs_debugfs_init() 465 debugfs_create_file("file", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init() 469 debugfs_create_file("size", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init() [all …]
|
| H A D | super.c | 823 fsc = kzalloc(sizeof(*fsc), GFP_KERNEL); in create_fs_client() 824 if (!fsc) { in create_fs_client() 829 fsc->client = ceph_create_client(opt, fsc); in create_fs_client() 849 fsc->sb = NULL; in create_fs_client() 876 return fsc; in create_fs_client() 883 kfree(fsc); in create_fs_client() 898 doutc(fsc->client, "%p\n", fsc); in destroy_fs_client() 912 kfree(fsc); in destroy_fs_client() 1036 if (!fsc) in ceph_umount_begin() 1219 fsc->sb = s; in ceph_set_super() [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() 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() 109 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument [all …]
|
| H A D | addr.c | 215 struct ceph_client *cl = fsc->client; in finish_netfs_read() 234 fsc->blocklisted = true; in finish_netfs_read() 768 fsc->write_congested = true; in write_folio_nounlock() 833 fsc->blocklisted = true; in write_folio_nounlock() 851 fsc->write_congested = false; in write_folio_nounlock() 884 fsc->blocklisted = true; in writepages_finish() 927 fsc->write_congested = false; in writepages_finish() 1358 fsc->write_congested = is_write_congestion_happened(fsc); in ceph_process_folio_batch() 2297 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data() 2466 fsc->blocklisted = true; in __ceph_pool_perm_get() [all …]
|
| H A D | mds_client.c | 1916 struct ceph_fs_client *fsc = session->s_mdsc->fsc; in remove_session_caps() local 1917 struct super_block *sb = fsc->sb; in remove_session_caps() 2423 if (queue_work(mdsc->fsc->cap_wq, in ceph_flush_session_cap_releases() 4359 mdsc->fsc->blocklisted = true; in handle_session() 4879 if (mdsc->fsc->sb->s_root) in send_mds_reconnect() 5335 struct ceph_fs_client *fsc = mdsc->fsc; in maybe_recover_session() local 5347 ceph_force_reconnect(fsc->sb); in maybe_recover_session() 5480 mdsc->fsc = fsc; in ceph_mdsc_init() 5541 fsc->mdsc = mdsc; in ceph_mdsc_init() 6048 fsc->mdsc = NULL; in ceph_mdsc_destroy() [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 | dir.c | 125 doutc(fsc->client, "'%s'\n", dfi->last_name); in note_last_dentry() 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() 801 struct ceph_client *cl = fsc->client; in ceph_lookup() 834 fsc->mount_options->snapdir_name, in ceph_lookup() 837 ceph_test_mount_opt(fsc, DCACHE) && in ceph_lookup() 916 struct ceph_client *cl = mdsc->fsc->client; in ceph_mknod() 1249 struct ceph_client *cl = fsc->client; in ceph_async_unlink_cb() 1342 struct ceph_client *cl = fsc->client; in ceph_unlink() [all …]
|
| 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 460 strscpy(name, fsc->mount_options->snapdir_name, in __get_snap_name() 474 req = ceph_mdsc_create_request(fsc->mdsc, CEPH_MDS_OP_LSSNAP, in __get_snap_name() 499 err = ceph_mdsc_do_request(fsc->mdsc, NULL, req); in __get_snap_name() 538 doutc(fsc->client, "child dentry %p %p %llx.%llx err=%d\n", child, in __get_snap_name() [all …]
|
| H A D | snap.c | 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() 944 struct ceph_client *cl = mdsc->fsc->client; in flush_snaps() 1020 struct ceph_client *cl = mdsc->fsc->client; in ceph_handle_snap() [all …]
|
| H A D | file.c | 25 struct ceph_client *cl = mdsc->fsc->client; in ceph_flags_sys2wire() 363 struct ceph_client *cl = fsc->client; in ceph_open() 784 struct ceph_client *cl = fsc->client; in ceph_atomic_open() 1054 struct ceph_client *cl = fsc->client; in __ceph_sync_read() 1166 fsc->blocklisted = true; in __ceph_sync_read() 1488 struct ceph_client *cl = fsc->client; in ceph_direct_read_write() 1717 struct ceph_client *cl = fsc->client; in ceph_sync_write() 2339 struct ceph_client *cl = fsc->client; in ceph_write_iter() 2879 struct ceph_fs_client *fsc, in ceph_do_objects_copy() argument 2897 osdc = &fsc->client->osdc; in ceph_do_objects_copy() [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() 418 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_reservation_status() 957 ceph_update_cap_hit(&fsc->mdsc->metric); in __ceph_caps_issued_mask_metric() 959 ceph_update_cap_mis(&fsc->mdsc->metric); in __ceph_caps_issued_mask_metric() 1201 struct ceph_fs_client *fsc; in ceph_remove_cap() local 1214 !fsc->blocklisted && in ceph_remove_cap() 1250 doutc(mdsc->fsc->client, in encode_cap_msg() [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() 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 1115 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_sync_setxattr() [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)) 1114 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_inode_is_shutdown() local 1115 int state = READ_ONCE(fsc->mount_state); in ceph_inode_is_shutdown() 1425 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() 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() 1525 struct ceph_client *cl = fsc->client; in ceph_fill_trace() 1658 fsc->mount_options->snapdir_name, in ceph_fill_trace() 2122 struct ceph_client *cl = fsc->client; in ceph_queue_inode_work() 2906 struct ceph_client *cl = fsc->client; in __ceph_do_getattr() 2907 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_do_getattr() 2954 struct ceph_client *cl = fsc->client; in ceph_do_getvxattr() [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 | 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()
|
| /linux-6.15/fs/fuse/ |
| H A D | inode.c | 203 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure() 802 if (fsc->oldapi) in fuse_parse_param() 814 if (fsc->source) in fuse_parse_param() 816 fsc->source = param->string; in fuse_parse_param() 1752 fsc->s_fs_info = fm; in fuse_get_tree_submount() 1754 if (fsc->s_fs_info) in fuse_get_tree_submount() 1771 fsc->root = dget(sb->s_root); in fuse_get_tree_submount() 1953 fsc->s_fs_info = fm; in fuse_get_tree() 1976 fsc->sget_key = fud->fc; in fuse_get_tree() 1985 if (fsc->s_fs_info) in fuse_get_tree() [all …]
|
| H A D | virtio_fs.c | 125 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_parse_param() 148 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_free_fsc() 1655 struct fs_context *fsc) in virtio_fs_test_super() argument 1672 if (!fsc->source) in virtio_fs_get_tree() 1709 fsc->s_fs_info = fm; in virtio_fs_get_tree() 1711 if (fsc->s_fs_info) in virtio_fs_get_tree() 1717 err = virtio_fs_fill_super(sb, fsc); in virtio_fs_get_tree() 1726 WARN_ON(fsc->root); in virtio_fs_get_tree() 1727 fsc->root = dget(sb->s_root); in virtio_fs_get_tree() 1752 fsc->fs_private = ctx; in virtio_fs_init_fs_context() [all …]
|
| H A D | control.c | 306 static int fuse_ctl_fill_super(struct super_block *sb, struct fs_context *fsc) in fuse_ctl_fill_super() argument 332 static int fuse_ctl_get_tree(struct fs_context *fsc) in fuse_ctl_get_tree() argument 334 return get_tree_single(fsc, fuse_ctl_fill_super); in fuse_ctl_get_tree() 341 static int fuse_ctl_init_fs_context(struct fs_context *fsc) in fuse_ctl_init_fs_context() argument 343 fsc->ops = &fuse_ctl_context_ops; in fuse_ctl_init_fs_context()
|
| /linux-6.15/drivers/iio/dac/ |
| H A D | ad9739a.c | 204 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-6.15/arch/arm64/kvm/hyp/include/hyp/ |
| H A D | fault.h | 17 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-6.15/net/sched/ |
| H A D | sch_hfsc.c | 892 hfsc_change_fsc(struct hfsc_class *cl, struct tc_service_curve *fsc) in hfsc_change_fsc() argument 894 sc2isc(fsc, &cl->cl_fsc); in hfsc_change_fsc() 932 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; in hfsc_change_class() local 951 fsc = nla_data(tb[TCA_HFSC_FSC]); in hfsc_change_class() 952 if (fsc->m1 == 0 && fsc->m2 == 0) in hfsc_change_class() 953 fsc = NULL; in hfsc_change_class() 990 if (fsc != NULL) in hfsc_change_class() 991 hfsc_change_fsc(cl, fsc); in hfsc_change_class() 1036 if (rsc == NULL && fsc == NULL) in hfsc_change_class() 1061 if (fsc != NULL) in hfsc_change_class() [all …]
|