Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 35) sorted by relevance

12

/fs/bcachefs/
A Ddisk_accounting.c472 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 Dbuckets.h212 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 Dbuckets.c34 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 Dalloc_foreground.c511 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 Ddisk_accounting.h181 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 Dmovinggc.c262 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 Dfs.c2272 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 Ddata_update.c794 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 Dalloc_foreground.h46 struct bch_dev_usage usage; member
A Dbcachefs.h642 *usage; member
981 struct bch_fs_usage_base __percpu *usage; member
/fs/afs/
A Daddr_list.c23 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 Dsecurity.c96 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 Dserver_list.c16 if (slist && refcount_dec_and_test(&slist->usage)) { in afs_put_serverlist()
67 refcount_set(&slist->usage, 1); in afs_alloc_server_list()
A Dwrite.c54 refcount_inc(&wbk->usage); in afs_get_writeback_key()
297 if (refcount_read(&wbk->usage) == 1) in afs_prune_wb_keys()
A Dfile.c76 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 Dinternal.h110 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 Dmain.c101 refcount_set(&sysnames->usage, 1); in afs_net_init()
A Dproc.c577 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 DKconfig89 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 DKconfig8 monitor and control their usage of memory system resources such as
/fs/xfs/
A DKconfig82 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 DKconfig20 purpose to remain small and low on RAM usage. It is most suitable
/fs/ext4/
A Dxattr.h236 extern int ext4_get_inode_usage(struct inode *inode, qsize_t *usage);
/fs/quota/
A DKconfig11 usage (also called disk quotas). Currently, it works for the
/fs/
A Dfs_context.c411 refcount_inc(&fc->log.log->usage); in vfs_dup_fs_context()
498 if (refcount_dec_and_test(&log->usage)) { in put_fc_log()

Completed in 51 milliseconds

12