/linux-master/fs/btrfs/ |
H A D | volumes.c | 3553 cpu->usage = le64_to_cpu(disk->usage); 3572 disk->usage = cpu_to_le64(cpu->usage); 3695 * Turn on usage filter if is not already used. The idea is 3705 bctl->data.usage = 90; 3711 bctl->sys.usage = 90; 3717 bctl->meta.usage = 90; 3800 else if (bargs->usage > 100) 3803 user_thresh = mult_perc(cache->length, bargs->usage); [all...] |
/linux-master/fs/bcachefs/ |
H A D | buckets.c | 51 struct bch_fs_usage *usage = c->usage_base; local 53 for (unsigned i = 0; i < ARRAY_SIZE(c->usage); i++) 57 usage->b.reserved += usage->persistent_reserved[i]; 63 fs_usage_data_type_to_base(&usage->b, e->data_type, usage->replicas[i]); 69 usage->b.hidden += (dev.d[BCH_DATA_sb].buckets + 85 : ca->usage[journal_seq & JOURNAL_BUF_MASK]); 88 void bch2_dev_usage_read_fast(struct bch_dev *ca, struct bch_dev_usage *usage) argument 95 memcpy(usage, c 275 bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev_usage *usage) argument [all...] |
H A D | sb-clean.c | 189 for (unsigned i = 0; i < ARRAY_SIZE(c->usage); i++)
|
H A D | fs.c | 1641 struct bch_fs_usage_short usage = bch2_fs_usage_read_short(c); local 1647 u64 avail_inodes = ((usage.capacity - usage.used) << 3); 1651 buf->f_blocks = usage.capacity >> shift; 1652 buf->f_bfree = usage.free >> shift; 1653 buf->f_bavail = avail_factor(usage.free) >> shift; 1655 buf->f_files = usage.nr_inodes + avail_inodes;
|
H A D | btree_gc.c | 1231 for (i = 0; i < ARRAY_SIZE(c->usage); i++)
|
H A D | bcachefs_format.h | 1311 x(usage, 5) \
|
H A D | buckets.h | 194 /* Device usage: */ 237 struct bch_dev_usage usage, 241 usage.d[BCH_DATA_free].buckets - 247 struct bch_dev_usage usage, 251 usage.d[BCH_DATA_free].buckets 252 + usage.d[BCH_DATA_cached].buckets 253 + usage.d[BCH_DATA_need_gc_gens].buckets 254 + usage.d[BCH_DATA_need_discard].buckets 265 /* Filesystem usage: */ 323 : c->usage[journal_se [all...] |
H A D | bcachefs.h | 579 struct bch_dev_usage __percpu *usage[JOURNAL_BUF_NR]; member in struct:bch_dev 916 struct bch_fs_usage __percpu *usage[JOURNAL_BUF_NR]; member in struct:bch_fs
|
H A D | replicas.c | 343 if (c->usage[i]) 345 c->usage[i], &c->replicas); 354 swap(c->usage[i], new_usage[i]); 559 * However, we don't track sector counts for journal usage, so this doesn't drop 596 percpu_u64_get(&c->usage[0]->replicas[i]) || 597 percpu_u64_get(&c->usage[1]->replicas[i]) || 598 percpu_u64_get(&c->usage[2]->replicas[i]) || 599 percpu_u64_get(&c->usage[3]->replicas[i])) 1040 for (i = 0; i < ARRAY_SIZE(c->usage); i++) 1041 free_percpu(c->usage[ [all...] |
H A D | alloc_foreground.c | 520 * @usage: for secondarily also returning the current device usage 528 struct bch_dev_usage *usage) 537 bch2_dev_usage_read_fast(ca, usage); 538 avail = dev_buckets_free(ca, *usage, watermark); 540 if (usage->d[BCH_DATA_need_discard].buckets > avail) 543 if (usage->d[BCH_DATA_need_gc_gens].buckets > avail) 546 if (should_invalidate_buckets(ca, *usage)) 584 usage->d[BCH_DATA_free].buckets, 595 usage 524 bch2_bucket_alloc_trans(struct btree_trans *trans, struct bch_dev *ca, enum bch_watermark watermark, struct closure *cl, struct bch_dev_usage *usage) argument 610 struct bch_dev_usage usage; local 642 bch2_dev_stripe_increment_inlined(struct bch_dev *ca, struct dev_stripe_state *stripe, struct bch_dev_usage *usage) argument 666 struct bch_dev_usage usage; local 722 struct bch_dev_usage usage; local 910 struct bch_dev_usage usage; local [all...] |
/linux-master/tools/testing/selftests/mm/ |
H A D | run_vmtests.sh | 14 usage() { function 16 usage: ${BASH_SOURCE[0]:-$0} [ options ] 91 "h") usage ;;
|
H A D | uffd-unit-tests.c | 1467 static void usage(const char *prog) function 1469 printf("usage: %s [-f TESTNAME]\n", prog); 1502 usage(argv[0]);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_gem_atomic_helper.c | 139 enum dma_resv_usage usage; local 159 usage = fence ? DMA_RESV_USAGE_KERNEL : DMA_RESV_USAGE_WRITE; 170 ret = dma_resv_get_singleton(obj->resv, usage, &new);
|
/linux-master/block/ |
H A D | blk-iocost.c | 129 * device on its own. Let's say A's usage amounts to 100ms worth of IO 139 * A's weight will be lowered so that it hovers above the actual usage and 297 /* halve debts if avg usage over 100ms is under 50% */ 1744 u32 usage, struct ioc_now *now) 1771 * consume the usage determined above, we want to determine new_hwi so 1774 * We need to execute usage worth of IOs while spending the sum of the 1778 * usage = (1 - MARGIN_TARGET + delta) * new_hwi 1782 * new_hwi = usage / (1 - MARGIN_TARGET + delta) 1787 new_hwi = div64_s64(WEIGHT_ONE * usage, WEIGHT_ONE - target + delta); 2104 * average usage an 1743 hweight_after_donation(struct ioc_gq *iocg, u32 old_hwi, u32 hwm, u32 usage, struct ioc_now *now) argument 2311 u32 hwa, old_hwi, hwm, new_hwi, usage; local [all...] |
/linux-master/kernel/ |
H A D | fork.c | 874 * Lazy mm shootdown does not refcount "lazy tlb mm" usage, rather it 971 WARN_ON(refcount_read(&tsk->usage)); 1133 * the usage counts on the error path calling free_task. 1157 refcount_set(&tsk->usage, 1);
|
/linux-master/io_uring/ |
H A D | io_uring.c | 764 refcount_add(refill, ¤t->usage); 3906 * work, which can reduce cpu usage and uring_lock contention.
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_migrate.c | 620 enum dma_resv_usage usage) 622 return drm_sched_job_add_resv_dependencies(&job->drm, resv, usage); 619 job_add_deps(struct xe_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage) argument
|
/linux-master/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_join.sh | 1871 print_check "link usage" 1874 fail_test "got $tx_rate% usage, expected $expected_rate%" 2009 if reset_with_tcp_filter "multi subflows, fair usage on close" ns1 10.0.3.2 REJECT && 3632 usage() function 3639 echo "mptcp_join usage:" 3708 usage 3711 usage "Unknown option: -${opt}"
|
H A D | mptcp_connect.sh | 48 usage() { function 67 usage $0 123 usage $0
|
/linux-master/net/core/ |
H A D | sock_map.c | 805 u64 usage = sizeof(struct bpf_stab); local 807 usage += (u64)map->max_entries * sizeof(struct sock *); 808 return usage; 1418 u64 usage = sizeof(*htab); local 1420 usage += htab->buckets_num * sizeof(struct bpf_shtab_bucket); 1421 usage += atomic_read(&htab->count) * (u64)htab->elem_size; 1422 return usage;
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_vma.c | 1987 enum dma_resv_usage usage; local 1991 usage = DMA_RESV_USAGE_WRITE; 1995 usage = DMA_RESV_USAGE_READ; 2000 dma_resv_add_fence(vma->obj->base.resv, curr, usage);
|
/linux-master/tools/testing/selftests/net/ |
H A D | test_vxlan_mdb.sh | 2482 usage() function 2485 usage: ${0##*/} OPTS 2510 h) usage; exit 0;; 2511 *) usage; exit 1;;
|
H A D | veth.sh | 201 usage() { function 211 usage $0
|
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 1156 usage(); 1540 usage(); 1835 usage(); 2556 usage();
|
/linux-master/net/sunrpc/auth_gss/ |
H A D | gss_krb5_crypto.c | 213 unsigned int usage, struct xdr_netobj *cksumout) 211 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, struct xdr_buf *body, int body_offset, u8 *cksumkey, unsigned int usage, struct xdr_netobj *cksumout) argument
|