/linux/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() 305 fsc->icount = 0; in xchk_fscount_aggregate_agcounts() 306 fsc->ifree = 0; in xchk_fscount_aggregate_agcounts() 364 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks, in xchk_fscount_aggregate_agcounts() 369 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max || in xchk_fscount_aggregate_agcounts() 371 fsc->ifree > fsc->icount_max) in xchk_fscount_aggregate_agcounts() 379 if (fsc->ifree > fsc->icount) { in xchk_fscount_aggregate_agcounts() 540 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 percpu_counter_set(&mp->m_fdblocks, fsc->fdblocks); in xrep_fscounters() 78 fsc->frextents - fsc->frextents_delayed); in xrep_fscounters() 79 mp->m_sb.sb_frextents = fsc->frextents; in xrep_fscounters()
|
/linux/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 | 812 fsc = kzalloc(sizeof(*fsc), GFP_KERNEL); in create_fs_client() 813 if (!fsc) { in create_fs_client() 818 fsc->client = ceph_create_client(opt, fsc); in create_fs_client() 838 fsc->sb = NULL; in create_fs_client() 865 return fsc; in create_fs_client() 872 kfree(fsc); in create_fs_client() 887 doutc(fsc->client, "%p\n", fsc); in destroy_fs_client() 901 kfree(fsc); in destroy_fs_client() 1024 if (!fsc) in ceph_umount_begin() 1207 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 | 244 fsc->blocklisted = true; in finish_netfs_read() 693 fsc->write_congested = true; in writepage_nounlock() 756 fsc->blocklisted = true; in writepage_nounlock() 774 fsc->write_congested = false; in writepage_nounlock() 830 fsc->blocklisted = true; in writepages_finish() 873 fsc->write_congested = false; in writepages_finish() 930 fsc->write_congested) in ceph_writepages_start() 1137 fsc->write_congested = true; in ceph_writepages_start() 1931 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data() 2100 fsc->blocklisted = true; in __ceph_pool_perm_get() [all …]
|
H A D | mds_client.c | 1924 struct ceph_fs_client *fsc = session->s_mdsc->fsc; in remove_session_caps() local 1925 struct super_block *sb = fsc->sb; in remove_session_caps() 2431 if (queue_work(mdsc->fsc->cap_wq, in ceph_flush_cap_releases() 4365 mdsc->fsc->blocklisted = true; in handle_session() 4885 if (mdsc->fsc->sb->s_root) in send_mds_reconnect() 5341 struct ceph_fs_client *fsc = mdsc->fsc; in maybe_recover_session() local 5353 ceph_force_reconnect(fsc->sb); in maybe_recover_session() 5484 mdsc->fsc = fsc; in ceph_mdsc_init() 5541 fsc->mdsc = mdsc; in ceph_mdsc_init() 6032 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() 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() 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() 1241 struct ceph_client *cl = fsc->client; in ceph_async_unlink_cb() 1334 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 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 | 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() 1228 fsc->blocklisted = true; in __ceph_sync_read() 1490 struct ceph_client *cl = fsc->client; in ceph_direct_read_write() 1718 struct ceph_client *cl = fsc->client; in ceph_sync_write() 2340 struct ceph_client *cl = fsc->client; in ceph_write_iter() 2880 struct ceph_fs_client *fsc, in ceph_do_objects_copy() argument 2898 osdc = &fsc->client->osdc; in ceph_do_objects_copy() [all …]
|
H A D | caps.c | 189 doutc(mdsc->fsc->client, in __ceph_unreserve_caps() 205 struct ceph_client *cl = mdsc->fsc->client; in ceph_reserve_caps() 311 struct ceph_client *cl = mdsc->fsc->client; in ceph_unreserve_caps() 333 struct ceph_client *cl = mdsc->fsc->client; in ceph_get_cap() 417 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_reservation_status() 956 ceph_update_cap_hit(&fsc->mdsc->metric); in __ceph_caps_issued_mask_metric() 958 ceph_update_cap_mis(&fsc->mdsc->metric); in __ceph_caps_issued_mask_metric() 1214 struct ceph_fs_client *fsc; in ceph_remove_cap() local 1227 !fsc->blocklisted && in ceph_remove_cap() 1263 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)) 1116 struct ceph_fs_client *fsc = ceph_inode_to_fs_client(inode); in ceph_inode_is_shutdown() local 1117 int state = READ_ONCE(fsc->mount_state); in ceph_inode_is_shutdown() 1431 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() 907 struct ceph_client *cl = mdsc->fsc->client; in decode_encrypted_symlink() 947 struct ceph_client *cl = mdsc->fsc->client; in ceph_fill_inode() 1526 struct ceph_client *cl = fsc->client; in ceph_fill_trace() 1659 fsc->mount_options->snapdir_name, in ceph_fill_trace() 2118 struct ceph_client *cl = fsc->client; in ceph_queue_inode_work() 2902 struct ceph_client *cl = fsc->client; in __ceph_do_getattr() 2903 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_do_getattr() 2950 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()
|
H A D | mds_client.h | 437 struct ceph_fs_client *fsc; member 559 extern int ceph_mdsc_init(struct ceph_fs_client *fsc); 562 extern void ceph_mdsc_destroy(struct ceph_fs_client *fsc);
|
/linux/fs/fuse/ |
H A D | inode.c | 189 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure() 764 if (fsc->oldapi) in fuse_parse_param() 776 if (fsc->source) in fuse_parse_param() 778 fsc->source = param->string; in fuse_parse_param() 1633 fsc->s_fs_info = fm; in fuse_get_tree_submount() 1635 if (fsc->s_fs_info) in fuse_get_tree_submount() 1652 fsc->root = dget(sb->s_root); in fuse_get_tree_submount() 1834 fsc->s_fs_info = fm; in fuse_get_tree() 1857 fsc->sget_key = fud->fc; in fuse_get_tree() 1866 if (fsc->s_fs_info) in fuse_get_tree() [all …]
|
H A D | virtio_fs.c | 122 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_parse_param() 145 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_free_fsc() 1526 struct fs_context *fsc) in virtio_fs_test_super() argument 1547 fs = virtio_fs_find_instance(fsc->source); in virtio_fs_get_tree() 1576 fsc->s_fs_info = fm; in virtio_fs_get_tree() 1578 if (fsc->s_fs_info) in virtio_fs_get_tree() 1584 err = virtio_fs_fill_super(sb, fsc); in virtio_fs_get_tree() 1593 WARN_ON(fsc->root); in virtio_fs_get_tree() 1594 fsc->root = dget(sb->s_root); in virtio_fs_get_tree() 1621 fsc->fs_private = ctx; in virtio_fs_init_fs_context() [all …]
|
H A D | control.c | 310 static int fuse_ctl_fill_super(struct super_block *sb, struct fs_context *fsc) in fuse_ctl_fill_super() argument 336 static int fuse_ctl_get_tree(struct fs_context *fsc) in fuse_ctl_get_tree() argument 338 return get_tree_single(fsc, fuse_ctl_fill_super); in fuse_ctl_get_tree() 345 static int fuse_ctl_init_fs_context(struct fs_context *fsc) in fuse_ctl_init_fs_context() argument 347 fsc->ops = &fuse_ctl_context_ops; in fuse_ctl_init_fs_context()
|
/linux/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/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 …]
|