Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 16 of 16) sorted by relevance

/fs/squashfs/
Dcache.c296 int remaining = length; in squashfs_copy_data() local
309 if (bytes >= remaining) { in squashfs_copy_data()
310 memcpy(buffer, buff, remaining); in squashfs_copy_data()
311 remaining = 0; in squashfs_copy_data()
317 remaining -= bytes; in squashfs_copy_data()
321 return length - remaining; in squashfs_copy_data()
/fs/erofs/
Dxattr.c377 unsigned int remaining; in inline_getxattr() local
383 remaining = ret; in inline_getxattr()
384 while (remaining) { in inline_getxattr()
385 ret = xattr_foreach(&it->it, &find_xattr_handlers, &remaining); in inline_getxattr()
599 unsigned int remaining; in inline_listxattr() local
605 remaining = ret; in inline_listxattr()
606 while (remaining) { in inline_listxattr()
607 ret = xattr_foreach(&it->it, &list_xattr_handlers, &remaining); in inline_listxattr()
/fs/cifs/
Dsmb1ops.c241 int remaining; in check2ndT2() local
267 remaining = total_data_size - data_in_this_rsp; in check2ndT2()
270 remaining); in check2ndT2()
276 return remaining; in check2ndT2()
286 int remaining; in coalesce_t2() local
299 remaining = tgt_total_cnt - total_in_tgt; in coalesce_t2()
301 if (remaining < 0) { in coalesce_t2()
307 if (remaining == 0) { in coalesce_t2()
314 if (remaining < total_in_src) in coalesce_t2()
359 if (remaining != total_in_src) { in coalesce_t2()
Dfile.c3451 size_t remaining = rdata->got_bytes; in cifs_readdata_to_iov() local
3456 size_t copy = min_t(size_t, remaining, PAGE_SIZE); in cifs_readdata_to_iov()
3466 remaining -= written; in cifs_readdata_to_iov()
3470 return remaining ? -EFAULT : 0; in cifs_readdata_to_iov()
Dcifssmb.c1448 int remaining = rfclen + server->vals->header_preamble_size - in cifs_discard_remaining_data() local
1451 while (remaining > 0) { in cifs_discard_remaining_data()
1455 min_t(size_t, remaining, in cifs_discard_remaining_data()
1460 remaining -= length; in cifs_discard_remaining_data()
/fs/
Dtimerfd.c165 ktime_t remaining; in timerfd_get_remaining() local
168 remaining = alarm_expires_remaining(&ctx->t.alarm); in timerfd_get_remaining()
170 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining()
172 return remaining < 0 ? 0: remaining; in timerfd_get_remaining()
Ddirect-io.c333 unsigned long remaining; in dio_bio_end_aio() local
341 remaining = --dio->refcount; in dio_bio_end_aio()
342 if (remaining == 1 && dio->waiter) in dio_bio_end_aio()
346 if (remaining == 0) { in dio_bio_end_aio()
Dseq_file.c857 int i, linelen, remaining = len; in seq_hex_dump() local
866 linelen = min(remaining, rowsize); in seq_hex_dump()
867 remaining -= rowsize; in seq_hex_dump()
Dbinfmt_elf.c1621 unsigned count, size, names_ofs, remaining, n; in fill_files_note() local
1647 remaining = size - names_ofs; in fill_files_note()
1656 filename = file_path(file, name_curpos, remaining); in fill_files_note()
1668 n = (name_curpos + remaining) - filename; in fill_files_note()
1669 remaining = filename - name_curpos; in fill_files_note()
/fs/nfsd/
Dnfsctl.c544 nfsd_print_version_support(struct nfsd_net *nn, char *buf, int remaining, in nfsd_print_version_support() argument
560 return snprintf(buf, remaining, format, sep, in nfsd_print_version_support()
568 int len, num, remaining; in __write_versions() local
637 remaining = SIMPLE_TRANSACTION_LIMIT; in __write_versions()
645 len = nfsd_print_version_support(nn, buf, remaining, in __write_versions()
647 if (len >= remaining) in __write_versions()
649 remaining -= len; in __write_versions()
658 len = snprintf(buf, remaining, "\n"); in __write_versions()
659 if (len >= remaining) in __write_versions()
/fs/ext4/
Dfast_commit.c1633 int remaining, len; in ext4_fc_replay_add_range() local
1661 remaining = len; in ext4_fc_replay_add_range()
1666 while (remaining > 0) { in ext4_fc_replay_add_range()
1668 map.m_len = remaining; in ext4_fc_replay_add_range()
1737 remaining -= map.m_len; in ext4_fc_replay_add_range()
1754 ext4_lblk_t cur, remaining; in ext4_fc_replay_del_range() local
1759 remaining = le32_to_cpu(lrange.fc_len); in ext4_fc_replay_del_range()
1762 le32_to_cpu(lrange.fc_ino), cur, remaining); in ext4_fc_replay_del_range()
1777 while (remaining > 0) { in ext4_fc_replay_del_range()
1779 map.m_len = remaining; in ext4_fc_replay_del_range()
[all …]
/fs/orangefs/
Dinode.c260 int remaining; in orangefs_readpage() local
283 remaining = ret; in orangefs_readpage()
301 if (remaining > PAGE_SIZE) { in orangefs_readpage()
303 while ((remaining - PAGE_SIZE) >= PAGE_SIZE) { in orangefs_readpage()
304 remaining -= PAGE_SIZE; in orangefs_readpage()
/fs/fuse/
Dvirtio_fs.c514 unsigned int remaining; in copy_args_from_argbuf() local
520 remaining = req->out.h.len - sizeof(req->out.h); in copy_args_from_argbuf()
530 argsize > remaining) { in copy_args_from_argbuf()
531 argsize = remaining; in copy_args_from_argbuf()
538 remaining -= argsize; in copy_args_from_argbuf()
543 args->out_args[args->out_numargs - 1].size = remaining; in copy_args_from_argbuf()
/fs/cramfs/
DREADME89 remaining block data as this cannot be determined from the placement of
140 The remaining options try to make cramfs more sharable.
/fs/nfs/
Dpnfs.c717 int remaining = 0; in pnfs_mark_matching_lsegs_invalid() local
730 remaining++; in pnfs_mark_matching_lsegs_invalid()
732 dprintk("%s:Return %i\n", __func__, remaining); in pnfs_mark_matching_lsegs_invalid()
733 return remaining; in pnfs_mark_matching_lsegs_invalid()
2492 int remaining = 0; in pnfs_mark_matching_lsegs_return() local
2512 remaining++; in pnfs_mark_matching_lsegs_return()
2516 if (remaining) { in pnfs_mark_matching_lsegs_return()
/fs/ceph/
Dmds_client.c1986 int *remaining = arg; in trim_caps_cb() local
1990 if (*remaining <= 0) in trim_caps_cb()
2028 (*remaining)--; in trim_caps_cb()
2040 (*remaining)--; in trim_caps_cb()
2066 int remaining = trim_caps; in ceph_trim_caps() local
2068 ceph_iterate_session_caps(session, trim_caps_cb, &remaining); in ceph_trim_caps()
2071 trim_caps - remaining); in ceph_trim_caps()