Home
last modified time | relevance | path

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

12

/fs/9p/
Dvfs_file.c136 int n, total; in v9fs_file_readn() local
143 total = 0; in v9fs_file_readn()
156 total += n; in v9fs_file_readn()
160 total = n; in v9fs_file_readn()
162 return total; in v9fs_file_readn()
208 int n, rsize, total = 0; in v9fs_file_write() local
228 n = p9_client_write(fid, NULL, data+total, *offset+total, in v9fs_file_write()
233 total += n; in v9fs_file_write()
236 if (total > 0) { in v9fs_file_write()
238 origin+total); in v9fs_file_write()
[all …]
/fs/adfs/
Dmap.c146 unsigned long total = 0; in scan_free_map() local
185 total += mapptr - start; in scan_free_map()
191 return total; in scan_free_map()
240 unsigned int total = 0; in adfs_map_free() local
247 total += scan_free_map(asb, dm++); in adfs_map_free()
250 return signed_asl(total, asb->s_map2blk); in adfs_map_free()
/fs/dlm/
Dmember.c120 int i, w, x = 0, total = 0, all_zero = 0, *array; in make_member_array() local
127 total += memb->weight; in make_member_array()
132 if (!total) { in make_member_array()
133 total = ls->ls_num_nodes; in make_member_array()
137 ls->ls_total_weight = total; in make_member_array()
139 array = kmalloc(sizeof(int) * total, GFP_KERNEL); in make_member_array()
152 DLM_ASSERT(x < total, printk("total %d x %d\n", total, x);); in make_member_array()
/fs/qnx4/
Dbitmap.c67 int total = 0; in qnx4_count_free_blocks() local
73 while (total < size) { in qnx4_count_free_blocks()
78 count_bits(bh->b_data, size - total, &total_free); in qnx4_count_free_blocks()
80 total += QNX4_BLOCK_SIZE; in qnx4_count_free_blocks()
/fs/xfs/
Dxfs_dir2.c206 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_createname() argument
225 args.total = total; in xfs_dir_createname()
337 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_removename() argument
354 args.total = total; in xfs_dir_removename()
418 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_replace() argument
437 args.total = total; in xfs_dir_replace()
552 args->firstblock, args->total, &map, &nmap, in xfs_dir2_grow_inode()
584 args->firstblock, args->total, in xfs_dir2_grow_inode()
629 args->total -= dp->i_d.di_nblocks - nblks; in xfs_dir2_grow_inode()
Dxfs_bmap.h127 xfs_extlen_t total; /* total blocks needed for xaction */ member
288 xfs_extlen_t total, /* total blocks needed */
Dxfs_alloc.h84 xfs_extlen_t total; /* total blocks needed in xaction */ member
Dxfs_da_btree.h105 xfs_extlen_t total; /* total blocks needed, for 1st bmap */ member
Dxfs_attr.c284 args.total = xfs_attr_calc_size(dp, name->len, valuelen, &local); in xfs_attr_set_int()
306 if ((error = xfs_trans_reserve(args.trans, args.total, in xfs_attr_set_int()
307 XFS_ATTRSET_LOG_RES(mp, args.total), 0, in xfs_attr_set_int()
314 error = XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, args.trans, dp, args.total, 0, in xfs_attr_set_int()
498 args.total = 0; in xfs_attr_remove_int()
2078 args->firstblock, args->total, &map, &nmap, in xfs_attr_rmtval_set()
Dxfs_bmap.c241 xfs_extlen_t total, /* total blocks needed by transaction */
545 dargs.total = mp->m_dirblkfsbs; in xfs_bmap_add_attrfork_local()
2773 args.total = ap->total; in xfs_bmap_btalloc()
2875 args.total = args.minlen = ap->minlen; in xfs_bmap_btalloc()
2878 args.total = ap->total; in xfs_bmap_btalloc()
2987 args.total = ap->minlen; in xfs_bmap_btalloc()
3514 args.total = args.minleft = args.alignment = args.mod = args.isfl = in xfs_bmap_extents_to_btree()
3614 xfs_extlen_t total, /* total blocks needed by transaction */ in xfs_bmap_local_to_extents() argument
3653 args.total = total; in xfs_bmap_local_to_extents()
4783 xfs_extlen_t total, /* total blocks needed */ in xfs_bmapi() argument
[all …]
Dxfs_dir2_node.c1030 else if (error == ENOSPC && args->total == 0) in xfs_dir2_leafn_remove()
1077 } else if (error != ENOSPC || args->total != 0) in xfs_dir2_leafn_remove()
1410 if (args->total == 0) { in xfs_dir2_node_addname()
1588 args->total == 0) { in xfs_dir2_node_addname_int()
Dxfs_dir2_leaf.c280 args->total == 0) { in xfs_dir2_leaf_addname()
313 if (args->total == 0 && use_block == -1) { in xfs_dir2_leaf_addname()
1536 if (error == ENOSPC && args->total == 0) { in xfs_dir2_leaf_removename()
/fs/
Dbio-integrity.c308 unsigned int i, sectors, total; in bio_integrity_generate() local
311 total = 0; in bio_integrity_generate()
327 total += sectors * bi->tuple_size; in bio_integrity_generate()
328 BUG_ON(total > bio->bi_integrity->bip_size); in bio_integrity_generate()
449 unsigned int i, sectors, total, ret; in bio_integrity_verify() local
452 ret = total = 0; in bio_integrity_verify()
473 total += sectors * bi->tuple_size; in bio_integrity_verify()
474 BUG_ON(total > bio->bi_integrity->bip_size); in bio_integrity_verify()
Dsignalfd.c179 ssize_t ret, total = 0; in signalfd_read() local
195 total += ret; in signalfd_read()
199 return total ? total: ret; in signalfd_read()
Dbinfmt_elf.c1466 long signr, size_t *total) in fill_thread_core_info() argument
1483 *total += notesize(&t->notes[0]); in fill_thread_core_info()
1516 *total += notesize(&t->notes[i]); in fill_thread_core_info()
/fs/ocfs2/
Dstackglue.c472 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_loaded_cluster_plugins_show() local
480 total = ret; in ocfs2_loaded_cluster_plugins_show()
485 total = -E2BIG; in ocfs2_loaded_cluster_plugins_show()
488 total += ret; in ocfs2_loaded_cluster_plugins_show()
493 return total; in ocfs2_loaded_cluster_plugins_show()
/fs/gfs2/
Dlops.c160 unsigned int total; in buf_lo_before_commit() local
170 total = sdp->sd_log_num_buf; in buf_lo_before_commit()
172 while(total) { in buf_lo_before_commit()
173 num = total; in buf_lo_before_commit()
174 if (total > limit) in buf_lo_before_commit()
209 BUG_ON(total < num); in buf_lo_before_commit()
210 total -= num; in buf_lo_before_commit()
Dsuper.h40 s64 total, s64 free, s64 dinodes);
Dsuper.c238 void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, in gfs2_statfs_change() argument
253 l_sc->sc_total += total; in gfs2_statfs_change()
/fs/ntfs/
Dfile.c1293 size_t total = 0; in ntfs_copy_from_user() local
1312 total += len; in ntfs_copy_from_user()
1320 return total; in ntfs_copy_from_user()
1322 total += len - left; in ntfs_copy_from_user()
1339 size_t total = 0; in __ntfs_copy_from_user_iovec_inatomic() local
1350 total += len; in __ntfs_copy_from_user_iovec_inatomic()
1354 total -= left; in __ntfs_copy_from_user_iovec_inatomic()
1362 return total; in __ntfs_copy_from_user_iovec_inatomic()
1410 size_t copied, len, total = 0; in ntfs_copy_from_user_iovec() local
1433 total += len; in ntfs_copy_from_user_iovec()
[all …]
/fs/ocfs2/dlm/
Ddlmdebug.c448 unsigned long total = 0; in debug_purgelist_print() local
455 ++total; in debug_purgelist_print()
469 "Total on list: %ld\n", total); in debug_purgelist_print()
505 unsigned long total = 0; in debug_mle_print() local
512 ++total; in debug_mle_print()
520 "Total on list: %ld\n", total); in debug_mle_print()
/fs/xfs/linux-2.6/
Dxfs_aops.c677 size_t total = 0; in xfs_probe_cluster() local
683 return total; in xfs_probe_cluster()
684 total += bh->b_size; in xfs_probe_cluster()
725 total += pg_len; in xfs_probe_cluster()
733 return total; in xfs_probe_cluster()
/fs/ext4/
Dinode.c1015 int total, mdb, mdb_free; in ext4_da_update_reserve_space() local
1019 total = EXT4_I(inode)->i_reserved_data_blocks - used; in ext4_da_update_reserve_space()
1020 mdb = ext4_calc_metadata_amount(inode, total); in ext4_da_update_reserve_space()
1557 unsigned long md_needed, mdblocks, total = 0; in ext4_da_reserve_space() local
1566 total = EXT4_I(inode)->i_reserved_data_blocks + nrblocks; in ext4_da_reserve_space()
1567 mdblocks = ext4_calc_metadata_amount(inode, total); in ext4_da_reserve_space()
1571 total = md_needed + nrblocks; in ext4_da_reserve_space()
1573 if (ext4_claim_free_blocks(sbi, total)) { in ext4_da_reserve_space()
1591 int total, mdb, mdb_free, release; in ext4_da_release_space() local
1613 total = EXT4_I(inode)->i_reserved_data_blocks - to_free; in ext4_da_release_space()
[all …]
/fs/ocfs2/cluster/
Dtcp.c878 size_t veclen, size_t total) in o2net_send_tcp_msg() argument
894 ret = sock_sendmsg(sock, &msg, total); in o2net_send_tcp_msg()
896 if (ret != total) { in o2net_send_tcp_msg()
898 total); in o2net_send_tcp_msg()
/fs/btrfs/
Dextent-tree.c659 int total = nr * 2; in insert_extents() local
664 keys = kzalloc(total * sizeof(struct btrfs_key), GFP_NOFS); in insert_extents()
668 data_size = kzalloc(total * sizeof(u32), GFP_NOFS); in insert_extents()
690 while (i < total) { in insert_extents()
693 keys+i, data_size+i, total-i); in insert_extents()
763 if (ret == 1 && !last && (i + ret < total)) { in insert_extents()
771 i = total - 1; in insert_extents()
789 total--; in insert_extents()
790 if (i < total) { in insert_extents()
2283 u64 total = num_bytes; in update_block_group() local
[all …]

12