Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 74) sorted by relevance

123

/fs/ceph/
A Dmetric.c70 cap->total = cpu_to_le64(nr_caps); in ceph_mdsc_send_metrics()
83 read->count = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics()
96 write->count = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics()
132 files->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics()
142 icaps->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics()
152 inodes->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics()
268 metric->total = 0; in ceph_metric_init()
333 if (unlikely(total == 1)) { in __update_mean_and_stdev()
337 avg = *lavg + div64_s64(lat - *lavg, total); in __update_mean_and_stdev()
348 ktime_t total; in ceph_update_metrics() local
[all …]
A Ddebugfs.c130 #define CEPH_LAT_METRIC_SHOW(name, total, avg, min, max, sq) { \ argument
135 _total = total - 1; \
140 name, total, _avg, _min, _max, _st); \
146 name, total, avg, _min, max, sum); \
178 s64 total, avg, min, max, sq; in metrics_latency_show() local
187 total = m->total; in metrics_latency_show()
204 s64 total; in metrics_size_show() local
217 total = m->total; in metrics_size_show()
219 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metrics_size_show()
272 int total, avail, used, reserved, min, i; in caps_show() local
[all …]
A Dmetric.h69 __le64 total; member
104 __le64 total; member
111 __le64 total; member
118 __le64 total; member
125 __le64 total; member
156 u64 total; member
A Dquota.c496 u64 total = 0, used, free; in ceph_quota_update_statfs() local
513 total = ci->i_max_bytes >> CEPH_BLOCK_SHIFT; in ceph_quota_update_statfs()
516 if (!total) { in ceph_quota_update_statfs()
517 total = ci->i_max_bytes >> CEPH_4K_BLOCK_SHIFT; in ceph_quota_update_statfs()
524 free = total > used ? total - used : 0; in ceph_quota_update_statfs()
528 if (!total) { in ceph_quota_update_statfs()
529 total = 1; in ceph_quota_update_statfs()
535 if (total) { in ceph_quota_update_statfs()
536 buf->f_blocks = total; in ceph_quota_update_statfs()
/fs/qnx4/
A Dbitmap.c24 int total = 0; in qnx4_count_free_blocks() local
30 while (total < size) { in qnx4_count_free_blocks()
31 int bytes = min(size - total, QNX4_BLOCK_SIZE); in qnx4_count_free_blocks()
40 total += bytes; in qnx4_count_free_blocks()
/fs/erofs/
A Dzutil.c125 unsigned int i, total = num_possible_cpus(); in z_erofs_gbuf_init() local
128 total = min(z_erofs_gbuf_count, total); in z_erofs_gbuf_init()
129 z_erofs_gbuf_count = total; in z_erofs_gbuf_init()
132 total += !!z_erofs_rsv_nrpages; in z_erofs_gbuf_init()
134 z_erofs_gbufpool = kcalloc(total, sizeof(*z_erofs_gbufpool), in z_erofs_gbuf_init()
140 z_erofs_rsvbuf = &z_erofs_gbufpool[total - 1]; in z_erofs_gbuf_init()
148 for (i = 0; i < total; ++i) in z_erofs_gbuf_init()
A Ddecompressor.c112 unsigned int oend, omargin, total, i; in z_erofs_lz4_handle_overlap() local
154 total = rq->inputsize; in z_erofs_lz4_handle_overlap()
155 while (total) { in z_erofs_lz4_handle_overlap()
157 min_t(unsigned int, total, PAGE_SIZE - *inputmargin); in z_erofs_lz4_handle_overlap()
165 total -= page_copycnt; in z_erofs_lz4_handle_overlap()
/fs/9p/
A Dvfs_addr.c74 int total, err; in v9fs_issue_read() local
76 total = p9_client_read(fid, pos, &subreq->io_iter, &err); in v9fs_issue_read()
83 if (pos + total >= i_size_read(rreq->inode)) in v9fs_issue_read()
85 if (!err && total) { in v9fs_issue_read()
86 subreq->transferred += total; in v9fs_issue_read()
/fs/bcachefs/
A Djournal_reclaim.c62 bool low_on_space = j->space[journal_space_clean].total * 4 <= in bch2_journal_set_watermark()
63 j->space[journal_space_total].total; in bch2_journal_set_watermark()
95 .total = bucket_size_aligned * ja->nr, in journal_dev_space_available()
137 .total = sectors + buckets * bucket_size_aligned, in journal_dev_space_available()
163 if (space.total > dev_space[pos].total) in __journal_space_available()
190 unsigned clean, clean_ondisk, total; in bch2_journal_space_available() local
244 clean_ondisk = j->space[journal_space_clean_ondisk].total; in bch2_journal_space_available()
245 clean = j->space[journal_space_clean].total; in bch2_journal_space_available()
246 total = j->space[journal_space_total].total; in bch2_journal_space_available()
252 j->space[journal_space_clean_ondisk].total) && in bch2_journal_space_available()
[all …]
/fs/pstore/
A Dftrace.c160 size_t dest_size, src_size, total, dest_off, src_off; in pstore_ftrace_combine_log() local
172 total = dest_size + src_size; in pstore_ftrace_combine_log()
173 merged_buf = kmalloc(total, GFP_KERNEL); in pstore_ftrace_combine_log()
204 *dest_log_size = total; in pstore_ftrace_combine_log()
/fs/ocfs2/
A Dfilecheck.c303 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_filecheck_attr_show() local
314 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show()
320 total += ret; in ocfs2_filecheck_attr_show()
327 ret = snprintf(buf + total, remain, "%lu\t\t%u\t%s\n", in ocfs2_filecheck_attr_show()
332 total = -E2BIG; in ocfs2_filecheck_attr_show()
335 total += ret; in ocfs2_filecheck_attr_show()
341 return total; in ocfs2_filecheck_attr_show()
A Dstackglue.c496 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_loaded_cluster_plugins_show() local
505 total = -E2BIG; in ocfs2_loaded_cluster_plugins_show()
508 total += ret; in ocfs2_loaded_cluster_plugins_show()
513 return total; in ocfs2_loaded_cluster_plugins_show()
/fs/adfs/
A Dmap.c124 unsigned long total = 0; in scan_free_map() local
147 total += fragend + 1 - start; in scan_free_map()
153 return total; in scan_free_map()
201 unsigned int total = 0; in adfs_map_statfs() local
208 total += scan_free_map(asb, dm++); in adfs_map_statfs()
214 buf->f_bfree = signed_asl(total, asb->s_map2blk); in adfs_map_statfs()
/fs/orangefs/
A Dxattr.c413 ssize_t total = 0; in orangefs_listxattr() local
449 total = new_op->downcall.resp.listxattr.returned_count * in orangefs_listxattr()
477 if (total + new_op->downcall.resp.listxattr.lengths[i] > size) in orangefs_listxattr()
492 memcpy(buffer + total, in orangefs_listxattr()
495 total += new_op->downcall.resp.listxattr.lengths[i]; in orangefs_listxattr()
517 ret ? (int)ret : (int)total, in orangefs_listxattr()
522 ret = total; in orangefs_listxattr()
A Ddevorangefs-req.c371 int total = ret = iov_iter_count(iter); in orangefs_devreq_write_iter() local
377 total, in orangefs_devreq_write_iter()
380 if (total < MAX_DEV_REQ_DOWNSIZE) { in orangefs_devreq_write_iter()
383 total, in orangefs_devreq_write_iter()
436 if ((head_size + downcall_size + op->downcall.trailer_size) != total) { in orangefs_devreq_write_iter()
444 total); in orangefs_devreq_write_iter()
/fs/dlm/
A Dmember.c412 int i, w, x = 0, total = 0, all_zero = 0, *array; in make_member_array() local
419 total += memb->weight; in make_member_array()
424 if (!total) { in make_member_array()
425 total = ls->ls_num_nodes; in make_member_array()
429 ls->ls_total_weight = total; in make_member_array()
430 array = kmalloc_array(total, sizeof(*array), GFP_NOFS); in make_member_array()
443 DLM_ASSERT(x < total, printk("total %d x %d\n", total, x);); in make_member_array()
/fs/ntfs3/
A Drecord.c175 if (le32_to_cpu(rec->total) != bpr) { in mi_read()
208 u32 total = le32_to_cpu(rec->total); in mi_enum_attr() local
212 if (used > total) in mi_enum_attr()
574 u32 total, used = le32_to_cpu(rec->used); in mi_resize_attr() local
587 total = le32_to_cpu(rec->total); in mi_resize_attr()
592 if (used + dsize > total) in mi_resize_attr()
A Dindex.c617 u32 tot = le32_to_cpu(hdr->total); in index_hdr_check()
729 u32 total = le32_to_cpu(hdr->total); in hdr_find_e() local
736 if (end > total) in hdr_find_e()
810 u32 total = le32_to_cpu(hdr->total); in hdr_insert_de() local
814 if (used + de_size > total) in hdr_insert_de()
1607 hdr_total = le32_to_cpu(hdr->total); in indx_insert_into_root()
1685 hdr->used = hdr->total = in indx_insert_into_root()
1729 hdr_total = le32_to_cpu(hdr->total); in indx_insert_into_root()
2329 hdr->total = hdr->used; in indx_delete_entry()
2386 hdr->total = hdr->used; in indx_delete_entry()
[all …]
/fs/squashfs/
A Dxz_wrapper.c125 int total = 0, error = 0; in squashfs_xz_uncompress() local
168 total += PAGE_SIZE; in squashfs_xz_uncompress()
184 return error ? error : total + stream->buf.out_pos; in squashfs_xz_uncompress()
/fs/
A Dsignalfd.c206 ssize_t ret, total = 0; in signalfd_read_iter() local
222 total += ret; in signalfd_read_iter()
226 return total ? total: ret; in signalfd_read_iter()
/fs/xfs/libxfs/
A Dxfs_dir2.c330 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_createname() argument
355 args->total = total; in xfs_dir_createname()
498 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_removename() argument
517 args->total = total; in xfs_dir_removename()
555 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_replace() argument
577 args->total = total; in xfs_dir_replace()
A Dxfs_bmap.h35 xfs_extlen_t total; /* total blocks needed for xaction */ member
188 xfs_extlen_t total, int *logflagsp, int whichfork,
205 xfs_extlen_t total, struct xfs_bmbt_irec *mval, int *nmap);
/fs/xfs/scrub/
A Ddir_repair.c692 xfs_extlen_t total) in xrep_dir_replay_createname() argument
708 rd->args.total = total; in xrep_dir_replay_createname()
718 xfs_extlen_t total) in xrep_dir_replay_removename() argument
726 rd->args.total = total; in xrep_dir_replay_removename()
1466 .total = 1, in xrep_dir_swap_prep()
1515 xfs_extlen_t total) in xrep_dir_replace() argument
1528 rd->args.total = total; in xrep_dir_replace()
/fs/btrfs/
A Daccessors.c26 const size_t total) in memcpy_split_src() argument
29 memcpy(dest + len1, src2, total - len1); in memcpy_split_src()
/fs/ocfs2/dlm/
A Ddlmdebug.c300 unsigned long total = 0; in debug_purgelist_print() local
307 ++total; in debug_purgelist_print()
320 out += scnprintf(buf + out, len - out, "Total on list: %lu\n", total); in debug_purgelist_print()
357 unsigned long total = 0, longest = 0, bucket_count = 0; in debug_mle_print() local
366 ++total; in debug_mle_print()
378 "Total: %lu, Longest: %lu\n", total, longest); in debug_mle_print()

Completed in 57 milliseconds

123