| /fs/bcachefs/ |
| A D | disk_accounting.c | 472 darray_init(usage); in bch2_fs_replicas_usage_read() 490 ret = darray_make_room(usage, replicas_usage_bytes(&u.r)); in bch2_fs_replicas_usage_read() 494 memcpy(&darray_top(*usage), &u.r, replicas_usage_bytes(&u.r)); in bch2_fs_replicas_usage_read() 495 usage->nr += replicas_usage_bytes(&u.r); in bch2_fs_replicas_usage_read() 500 darray_exit(usage); in bch2_fs_replicas_usage_read() 641 struct bch_fs_usage_base *dst = this_cpu_ptr(c->usage); in bch2_gc_accounting_done() 768 percpu_memset(ca->usage, 0, sizeof(*ca->usage)); in bch2_accounting_read() 769 percpu_memset(c->usage, 0, sizeof(*c->usage)); in bch2_accounting_read() 886 struct bch_fs_usage_base *usage = this_cpu_ptr(c->usage); in bch2_accounting_read() local 897 usage->reserved += v[0] * k.persistent_reserved.nr_replicas; in bch2_accounting_read() [all …]
|
| A D | buckets.h | 212 struct bch_dev_usage usage, in dev_buckets_free() argument 216 usage.buckets[BCH_DATA_free]- in dev_buckets_free() 222 struct bch_dev_usage usage, in __dev_buckets_available() argument 226 usage.buckets[BCH_DATA_free] in __dev_buckets_available() 227 + usage.buckets[BCH_DATA_cached] in __dev_buckets_available() 228 + usage.buckets[BCH_DATA_need_gc_gens] in __dev_buckets_available() 229 + usage.buckets[BCH_DATA_need_discard] in __dev_buckets_available()
|
| A D | buckets.c | 34 usage->buckets[i] = percpu_u64_get(&ca->usage->d[i].buckets); in bch2_dev_usage_read_fast() 39 memset(usage, 0, sizeof(*usage)); in bch2_dev_usage_full_read_fast() 40 acc_u64s_percpu((u64 *) usage, (u64 __percpu *) ca->usage, in bch2_dev_usage_full_read_fast() 56 percpu_u64_get(&c->usage->hidden); in __bch2_fs_usage_read_short() 59 percpu_u64_get(&c->usage->btree); in __bch2_fs_usage_read_short() 85 struct bch_dev_usage_full *usage) in bch2_dev_usage_to_text() argument 101 usage->d[i].buckets, in bch2_dev_usage_to_text() 102 usage->d[i].sectors, in bch2_dev_usage_to_text() 103 usage->d[i].fragmented); in bch2_dev_usage_to_text() 1385 free_percpu(ca->usage); in bch2_dev_buckets_free() [all …]
|
| A D | alloc_foreground.c | 511 bch2_dev_usage_read_fast(ca, &req->usage); in bch2_bucket_alloc_trans() 512 avail = dev_buckets_free(ca, req->usage, req->watermark); in bch2_bucket_alloc_trans() 514 if (req->usage.buckets[BCH_DATA_need_discard] > in bch2_bucket_alloc_trans() 518 if (req->usage.buckets[BCH_DATA_need_gc_gens] > avail) in bch2_bucket_alloc_trans() 521 if (should_invalidate_buckets(ca, req->usage)) in bch2_bucket_alloc_trans() 652 struct bch_dev_usage *usage) in bch2_dev_stripe_increment_inlined() argument 680 struct bch_dev_usage usage; in bch2_dev_stripe_increment() local 682 bch2_dev_usage_read_fast(ca, &usage); in bch2_dev_stripe_increment() 683 bch2_dev_stripe_increment_inlined(ca, stripe, &usage); in bch2_dev_stripe_increment() 732 bch2_dev_stripe_increment_inlined(req->ca, stripe, &req->usage); in bch2_bucket_alloc_set_trans() [all …]
|
| A D | disk_accounting.h | 181 this_cpu_add(ca->usage->d[acc_k.dev_data_type.data_type].buckets, a.v->d[0]); in bch2_accounting_mem_mod_locked() 182 this_cpu_add(ca->usage->d[acc_k.dev_data_type.data_type].sectors, a.v->d[1]); in bch2_accounting_mem_mod_locked() 183 this_cpu_add(ca->usage->d[acc_k.dev_data_type.data_type].fragmented, a.v->d[2]); in bch2_accounting_mem_mod_locked()
|
| A D | movinggc.c | 262 struct bch_dev_usage usage; in bch2_copygc_dev_wait_amount() local 265 usage.buckets[i] = usage_full.d[i].buckets; in bch2_copygc_dev_wait_amount() 267 s64 fragmented_allowed = ((__dev_buckets_available(ca, usage, BCH_WATERMARK_stripe) * in bch2_copygc_dev_wait_amount()
|
| A D | fs.c | 2272 struct bch_fs_usage_short usage = bch2_fs_usage_read_short(c); in bch2_statfs() local 2278 u64 avail_inodes = ((usage.capacity - usage.used) << 3); in bch2_statfs() 2282 buf->f_blocks = usage.capacity >> shift; in bch2_statfs() 2283 buf->f_bfree = usage.free >> shift; in bch2_statfs() 2284 buf->f_bavail = avail_factor(usage.free) >> shift; in bch2_statfs() 2286 buf->f_files = usage.nr_inodes + avail_inodes; in bch2_statfs()
|
| A D | data_update.c | 794 struct bch_dev_usage usage; in can_write_extent() local 795 bch2_dev_usage_read_fast(ca, &usage); in can_write_extent() 797 if (!dev_buckets_free(ca, usage, m->op.watermark)) in can_write_extent()
|
| A D | alloc_foreground.h | 46 struct bch_dev_usage usage; member
|
| A D | bcachefs.h | 642 *usage; member 981 struct bch_fs_usage_base __percpu *usage; member
|
| /fs/afs/ |
| A D | addr_list.c | 23 trace_afs_alist(alist->debug_id, refcount_read(&alist->usage), afs_alist_trace_free); in afs_free_addrlist() 39 dead = __refcount_dec_and_test(&alist->usage, &r); in afs_put_addrlist() 50 __refcount_inc(&alist->usage, &r); in afs_get_addrlist() 73 refcount_set(&alist->usage, 1); in afs_alloc_addrlist()
|
| A D | security.c | 96 if (permits && refcount_dec_and_test(&permits->usage)) { in afs_put_permits() 209 if (permits && !refcount_inc_not_zero(&permits->usage)) in afs_cache_permit() 226 refcount_set(&new->usage, 1); in afs_cache_permit() 260 if (refcount_inc_not_zero(&xpermits->usage)) { in afs_cache_permit()
|
| A D | server_list.c | 16 if (slist && refcount_dec_and_test(&slist->usage)) { in afs_put_serverlist() 67 refcount_set(&slist->usage, 1); in afs_alloc_server_list()
|
| A D | write.c | 54 refcount_inc(&wbk->usage); in afs_get_writeback_key() 297 if (refcount_read(&wbk->usage) == 1) in afs_prune_wb_keys()
|
| A D | file.c | 76 if (wbk && refcount_dec_and_test(&wbk->usage)) { in afs_put_wb_key() 92 refcount_set(&wbk->usage, 2); in afs_cache_wb_key() 108 refcount_inc(&p->usage); in afs_cache_wb_key()
|
| A D | internal.h | 110 refcount_t usage; member 225 refcount_t usage; member 270 refcount_t usage; member 606 refcount_t usage; member 771 refcount_t usage; member 1570 refcount_inc(&slist->usage); in afs_get_serverlist()
|
| A D | main.c | 101 refcount_set(&sysnames->usage, 1); in afs_net_init()
|
| A D | proc.c | 577 refcount_set(&sysnames->usage, 1); in afs_proc_sysname_write() 645 if (sysnames && refcount_dec_and_test(&sysnames->usage)) { in afs_put_sysnames()
|
| /fs/squashfs/ |
| A D | Kconfig | 89 decompression performance and CPU and memory usage. 99 one time. This limits CPU and memory usage to a minimum. 167 repeated reads. However, this increases memory usage, which may be a 171 memory usage is not a limiting factor. If unsure, say N.
|
| /fs/resctrl/ |
| A D | Kconfig | 8 monitor and control their usage of memory system resources such as
|
| /fs/xfs/ |
| A D | Kconfig | 82 If you say Y here, you will be able to set limits for disk usage on 159 bool "XFS online metadata check usage data collection" 164 If you say Y here, the kernel will gather usage data about
|
| /fs/cramfs/ |
| A D | Kconfig | 20 purpose to remain small and low on RAM usage. It is most suitable
|
| /fs/ext4/ |
| A D | xattr.h | 236 extern int ext4_get_inode_usage(struct inode *inode, qsize_t *usage);
|
| /fs/quota/ |
| A D | Kconfig | 11 usage (also called disk quotas). Currently, it works for the
|
| /fs/ |
| A D | fs_context.c | 411 refcount_inc(&fc->log.log->usage); in vfs_dup_fs_context() 498 if (refcount_dec_and_test(&log->usage)) { in put_fc_log()
|