Home
last modified time | relevance | path

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

123

/fs/ceph/
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); \
143 #define CEPH_SZ_METRIC_SHOW(name, total, avg, min, max, sum) { \ argument
146 name, total, avg, _min, max, sum); \
155 s64 total, sum, avg, min, max, sq; in metric_show() local
173 total = m->total_reads; in metric_show()
175 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metric_show()
180 CEPH_LAT_METRIC_SHOW("read", total, avg, min, max, sq); in metric_show()
183 total = m->total_writes; in metric_show()
[all …]
Dmetric.c56 cap->total = cpu_to_le64(nr_caps); in ceph_mdsc_send_metrics()
103 dlease->total = cpu_to_le64(atomic64_read(&m->total_dentries)); in ceph_mdsc_send_metrics()
115 files->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics()
125 icaps->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics()
135 inodes->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics()
325 static inline void __update_stdev(ktime_t total, ktime_t lsum, in __update_stdev() argument
330 if (unlikely(total == 1)) in __update_stdev()
334 avg = DIV64_U64_ROUND_CLOSEST((lsum - lat), (total - 1)); in __update_stdev()
336 avg = DIV64_U64_ROUND_CLOSEST(lsum, total); in __update_stdev()
346 ktime_t total; in ceph_update_read_metrics() local
[all …]
Dmetric.h57 __le64 total; member
86 __le64 total; member
93 __le64 total; member
100 __le64 total; member
107 __le64 total; member
Dquota.c479 u64 total = 0, used, free; in ceph_quota_update_statfs() local
495 total = ci->i_max_bytes >> CEPH_BLOCK_SHIFT; in ceph_quota_update_statfs()
500 free = total > used ? total - used : 0; in ceph_quota_update_statfs()
503 if (total) { in ceph_quota_update_statfs()
504 buf->f_blocks = total; in ceph_quota_update_statfs()
/fs/qnx4/
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/pstore/
Dftrace.c146 size_t dest_size, src_size, total, dest_off, src_off; in pstore_ftrace_combine_log() local
158 total = dest_size + src_size; in pstore_ftrace_combine_log()
159 merged_buf = kmalloc(total, GFP_KERNEL); in pstore_ftrace_combine_log()
190 *dest_log_size = total; in pstore_ftrace_combine_log()
Dplatform.c390 unsigned long total = 0; in pstore_dump() local
411 while (total < kmsg_bytes) { in pstore_dump()
466 total += record.size; in pstore_dump()
/fs/ocfs2/
Dfilecheck.c302 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_filecheck_attr_show() local
313 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show()
319 total += ret; in ocfs2_filecheck_attr_show()
326 ret = snprintf(buf + total, remain, "%lu\t\t%u\t%s\n", in ocfs2_filecheck_attr_show()
331 total = -E2BIG; in ocfs2_filecheck_attr_show()
334 total += ret; in ocfs2_filecheck_attr_show()
340 return total; in ocfs2_filecheck_attr_show()
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/xfs/libxfs/
Dxfs_dir2.c248 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_createname() argument
274 args->total = total; in xfs_dir_createname()
422 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_removename() argument
442 args->total = total; in xfs_dir_removename()
480 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_replace() argument
503 args->total = total; in xfs_dir_replace()
Dxfs_attr.c711 unsigned int total; in xfs_attr_set() local
735 args->total = xfs_attr_calc_size(args, &local); in xfs_attr_set()
753 args->total; in xfs_attr_set()
756 total = args->total; in xfs_attr_set()
764 total = XFS_ATTRRM_SPACE_RES(mp); in xfs_attr_set()
772 error = xfs_trans_alloc_inode(dp, &tres, total, 0, rsvd, &args->trans); in xfs_attr_set()
Dxfs_bmap.h36 xfs_extlen_t total; /* total blocks needed for xaction */ member
207 xfs_extlen_t total, struct xfs_bmbt_irec *mval, int *nmap);
/fs/adfs/
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/
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()
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/
Dmember.c397 int i, w, x = 0, total = 0, all_zero = 0, *array; in make_member_array() local
404 total += memb->weight; in make_member_array()
409 if (!total) { in make_member_array()
410 total = ls->ls_num_nodes; in make_member_array()
414 ls->ls_total_weight = total; in make_member_array()
415 array = kmalloc_array(total, sizeof(*array), GFP_NOFS); in make_member_array()
428 DLM_ASSERT(x < total, printk("total %d x %d\n", total, x);); in make_member_array()
/fs/ntfs3/
Drecord.c175 if (le32_to_cpu(rec->total) != bpr) { in mi_read()
200 u32 total = le32_to_cpu(rec->total); in mi_enum_attr() local
204 if (used > total) in mi_enum_attr()
541 u32 total, used = le32_to_cpu(rec->used); in mi_resize_attr() local
554 total = le32_to_cpu(rec->total); in mi_resize_attr()
559 if (used + dsize > total) in mi_resize_attr()
Dindex.c616 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()
811 u32 total = le32_to_cpu(hdr->total); in hdr_insert_de() local
815 if (used + de_size > total) in hdr_insert_de()
822 off + le16_to_cpu(before->size) > total) { in hdr_insert_de()
856 if (!check_index_header(hdr, le32_to_cpu(hdr->total))) in hdr_delete_de()
989 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new()
1604 hdr_total = le32_to_cpu(hdr->total); in indx_insert_into_root()
1613 hdr->total = cpu_to_le32(hdr_total + ds_root); in indx_insert_into_root()
[all …]
Dfslog.c96 __le16 total; // 0x04: Entries member
619 if (!t || !t->total) in enum_rstbl()
727 le16_to_cpu(rt->total) > ne || ff > ts || lf > ts || in check_rstbl()
788 le16_sub_cpu(&rt->total, 1); in free_rsttbl_idx()
844 rt->total = tbl->total; in extend_rsttbl()
882 le16_add_cpu(&t->total, 1); in alloc_rsttbl_idx()
974 le16_add_cpu(&rt->total, 1); in alloc_rsttbl_from_idx()
2585 u32 min_de, de_off, used, total; in check_index_header() local
2598 total = le32_to_cpu(hdr->total); in check_index_header()
2600 if (de_off > bytes - min_de || used > bytes || total > bytes || in check_index_header()
[all …]
/fs/erofs/
Ddecompressor.c124 unsigned int ofull, oend, inputsize, total, i, j; in z_erofs_lz4_handle_inplace_io() local
170 total = rq->inputsize; in z_erofs_lz4_handle_inplace_io()
171 while (total) { in z_erofs_lz4_handle_inplace_io()
173 min_t(unsigned int, total, PAGE_SIZE - *inputmargin); in z_erofs_lz4_handle_inplace_io()
181 total -= page_copycnt; in z_erofs_lz4_handle_inplace_io()
/fs/squashfs/
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/
Dsignalfd.c207 ssize_t ret, total = 0; in signalfd_read() local
223 total += ret; in signalfd_read()
227 return total ? total: ret; in signalfd_read()
/fs/ocfs2/dlm/
Ddlmdebug.c352 unsigned long total = 0; in debug_purgelist_print() local
359 ++total; in debug_purgelist_print()
372 out += scnprintf(buf + out, len - out, "Total on list: %lu\n", total); in debug_purgelist_print()
409 unsigned long total = 0, longest = 0, bucket_count = 0; in debug_mle_print() local
418 ++total; in debug_mle_print()
430 "Total: %lu, Longest: %lu\n", total, longest); in debug_mle_print()
/fs/gfs2/
Dlops.c655 unsigned int total, struct list_head *blist, in gfs2_before_commit() argument
668 while(total) { in gfs2_before_commit()
669 num = total; in gfs2_before_commit()
670 if (total > limit) in gfs2_before_commit()
722 BUG_ON(total < num); in gfs2_before_commit()
723 total -= num; in gfs2_before_commit()
Dsuper.h40 extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free,

123