Home
last modified time | relevance | path

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

12

/fs/xfs/scrub/
A Dfscounters.c214 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()
548 if (icount < fsc->icount_min || icount > fsc->icount_max) in xchk_fscounters()
[all …]
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()
/fs/ceph/
A Ddebugfs.c31 if (!fsc->mdsc || !fsc->mdsc->mdsmap) in mdsmap_show()
422 fsc, 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()
467 debugfs_create_file("latency", 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 …]
A Dsuper.c823 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()
866 if (!fsc->cap_wq) 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()
1218 fsc->sb = s; in ceph_set_super()
[all …]
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()
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 …]
A Daddr.c215 struct ceph_client *cl = fsc->client; in finish_netfs_read()
234 fsc->blocklisted = true; in finish_netfs_read()
779 fsc->write_congested = true; in write_folio_nounlock()
844 fsc->blocklisted = true; in write_folio_nounlock()
862 fsc->write_congested = false; in write_folio_nounlock()
895 fsc->blocklisted = true; in writepages_finish()
938 fsc->write_congested = false; in writepages_finish()
1369 fsc->write_congested = is_write_congestion_happened(fsc); in ceph_process_folio_batch()
2312 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
2481 fsc->blocklisted = true; in __ceph_pool_perm_get()
[all …]
A Dmds_client.c1916 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 …]
A Ddir.c125 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()
800 struct ceph_client *cl = fsc->client; in ceph_lookup()
833 fsc->mount_options->snapdir_name, in ceph_lookup()
836 ceph_test_mount_opt(fsc, DCACHE) && in ceph_lookup()
915 struct ceph_client *cl = mdsc->fsc->client; in ceph_mknod()
1248 struct ceph_client *cl = fsc->client; in ceph_async_unlink_cb()
1341 struct ceph_client *cl = fsc->client; in ceph_unlink()
[all …]
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
A Dquota.c44 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()
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 …]
A Dfile.c25 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()
2338 struct ceph_client *cl = fsc->client; in ceph_write_iter()
2878 struct ceph_fs_client *fsc, in ceph_do_objects_copy() argument
2896 osdc = &fsc->client->osdc; in ceph_do_objects_copy()
[all …]
A Dsnap.c153 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 …]
A Dcaps.c190 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 …]
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()
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 …]
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))
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,
A Dinode.c135 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()
2905 struct ceph_client *cl = fsc->client; in __ceph_do_getattr()
2906 struct ceph_mds_client *mdsc = fsc->mdsc; in __ceph_do_getattr()
2953 struct ceph_client *cl = fsc->client; in ceph_do_getvxattr()
[all …]
A Dcrypto.h99 void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc);
175 static inline void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc) in ceph_fscrypt_free_dummy_policy() argument
A Dioctl.c248 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()
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);
A Dlocks.c80 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()
A Dcrypto.c148 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()
/fs/fuse/
A Dinode.c207 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure()
801 if (fsc->oldapi) in fuse_parse_param()
813 if (fsc->source) in fuse_parse_param()
815 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()
1951 fsc->s_fs_info = fm; in fuse_get_tree()
1974 fsc->sget_key = fud->fc; in fuse_get_tree()
1983 if (fsc->s_fs_info) in fuse_get_tree()
[all …]
A Dvirtio_fs.c124 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_parse_param()
147 struct fuse_fs_context *ctx = fsc->fs_private; in virtio_fs_free_fsc()
1654 struct fs_context *fsc) in virtio_fs_test_super() argument
1671 if (!fsc->source) in virtio_fs_get_tree()
1708 fsc->s_fs_info = fm; in virtio_fs_get_tree()
1710 if (fsc->s_fs_info) in virtio_fs_get_tree()
1716 err = virtio_fs_fill_super(sb, fsc); in virtio_fs_get_tree()
1725 WARN_ON(fsc->root); in virtio_fs_get_tree()
1726 fsc->root = dget(sb->s_root); in virtio_fs_get_tree()
1751 fsc->fs_private = ctx; in virtio_fs_init_fs_context()
[all …]
A Dcontrol.c306 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()

Completed in 105 milliseconds

12