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.c370 unsigned int remaining; in inline_getxattr() local
376 remaining = ret; in inline_getxattr()
377 while (remaining) { in inline_getxattr()
378 ret = xattr_foreach(&it->it, &find_xattr_handlers, &remaining); in inline_getxattr()
594 unsigned int remaining; in inline_listxattr() local
600 remaining = ret; in inline_listxattr()
601 while (remaining) { in inline_listxattr()
602 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.c3365 size_t remaining = rdata->got_bytes; in cifs_readdata_to_iov() local
3370 size_t copy = min_t(size_t, remaining, PAGE_SIZE); in cifs_readdata_to_iov()
3380 remaining -= written; in cifs_readdata_to_iov()
3384 return remaining ? -EFAULT : 0; in cifs_readdata_to_iov()
Dsmb2pdu.c1920 unsigned int remaining; in smb2_parse_contexts() local
1925 remaining = le32_to_cpu(rsp->CreateContextsLength); in smb2_parse_contexts()
1932 while (remaining >= sizeof(struct create_context)) { in smb2_parse_contexts()
1945 remaining -= next; in smb2_parse_contexts()
Dcifssmb.c1520 int remaining = rfclen + server->vals->header_preamble_size - in cifs_discard_remaining_data() local
1523 while (remaining > 0) { in cifs_discard_remaining_data()
1527 min_t(unsigned int, remaining, in cifs_discard_remaining_data()
1532 remaining -= length; in cifs_discard_remaining_data()
/fs/
Dtimerfd.c162 ktime_t remaining; in timerfd_get_remaining() local
165 remaining = alarm_expires_remaining(&ctx->t.alarm); in timerfd_get_remaining()
167 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining()
169 return remaining < 0 ? 0: remaining; in timerfd_get_remaining()
Ddirect-io.c353 unsigned long remaining; in dio_bio_end_aio() local
361 remaining = --dio->refcount; in dio_bio_end_aio()
362 if (remaining == 1 && dio->waiter) in dio_bio_end_aio()
366 if (remaining == 0) { in dio_bio_end_aio()
Dseq_file.c862 int i, linelen, remaining = len; in seq_hex_dump() local
871 linelen = min(remaining, rowsize); in seq_hex_dump()
872 remaining -= rowsize; in seq_hex_dump()
Dbinfmt_elf.c1584 unsigned count, size, names_ofs, remaining, n; in fill_files_note() local
1606 remaining = size - names_ofs; in fill_files_note()
1615 filename = file_path(file, name_curpos, remaining); in fill_files_note()
1627 n = (name_curpos + remaining) - filename; in fill_files_note()
1628 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/fuse/
Dvirtio_fs.c410 unsigned int remaining; in copy_args_from_argbuf() local
416 remaining = req->out.h.len - sizeof(req->out.h); in copy_args_from_argbuf()
426 argsize > remaining) { in copy_args_from_argbuf()
427 argsize = remaining; in copy_args_from_argbuf()
434 remaining -= argsize; in copy_args_from_argbuf()
439 args->out_args[args->out_numargs - 1].size = remaining; in copy_args_from_argbuf()
/fs/orangefs/
Dinode.c267 int remaining; in orangefs_readpage() local
315 remaining = ret; in orangefs_readpage()
333 if (remaining > PAGE_SIZE) { in orangefs_readpage()
335 while ((remaining - PAGE_SIZE) >= PAGE_SIZE) { in orangefs_readpage()
336 remaining -= PAGE_SIZE; in orangefs_readpage()
/fs/nfs/
Dpnfs.c678 int remaining = 0; in pnfs_mark_matching_lsegs_invalid() local
691 remaining++; in pnfs_mark_matching_lsegs_invalid()
693 dprintk("%s:Return %i\n", __func__, remaining); in pnfs_mark_matching_lsegs_invalid()
694 return remaining; in pnfs_mark_matching_lsegs_invalid()
2398 int remaining = 0; in pnfs_mark_matching_lsegs_return() local
2413 remaining++; in pnfs_mark_matching_lsegs_return()
2417 if (remaining) { in pnfs_mark_matching_lsegs_return()
/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/ceph/
Dmds_client.c1727 int *remaining = arg; in trim_caps_cb() local
1731 if (*remaining <= 0) in trim_caps_cb()
1768 (*remaining)--; in trim_caps_cb()
1780 (*remaining)--; in trim_caps_cb()
1806 int remaining = trim_caps; in ceph_trim_caps() local
1808 ceph_iterate_session_caps(session, trim_caps_cb, &remaining); in ceph_trim_caps()
1811 trim_caps - remaining); in ceph_trim_caps()