/fs/xfs/ |
D | xfs_rtalloc.c | 226 xfs_extlen_t maxlen, /* maximum length to allocate */ in xfs_rtallocate_extent_block() argument 251 maxlen = min(mp->m_sb.sb_rextents, i + maxlen) - i; in xfs_rtallocate_extent_block() 257 error = xfs_rtcheck_range(mp, tp, i, maxlen, 1, &next, &stat); in xfs_rtallocate_extent_block() 265 error = xfs_rtallocate_range(mp, tp, i, maxlen, rbpp, in xfs_rtallocate_extent_block() 270 *len = maxlen; in xfs_rtallocate_extent_block() 280 if (minlen < maxlen) { in xfs_rtallocate_extent_block() 303 if (minlen < maxlen && besti != -1) { in xfs_rtallocate_extent_block() 346 xfs_extlen_t maxlen, /* maximum length to allocate */ in xfs_rtallocate_extent_exact() argument 358 ASSERT(minlen % prod == 0 && maxlen % prod == 0); in xfs_rtallocate_extent_exact() 362 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact() [all …]
|
D | xfs_sysctl.c | 73 .maxlen = sizeof(int), 82 .maxlen = sizeof(int), 91 .maxlen = sizeof(int), 101 .maxlen = sizeof(int), 110 .maxlen = sizeof(int), 119 .maxlen = sizeof(int), 128 .maxlen = sizeof(int), 137 .maxlen = sizeof(int), 146 .maxlen = sizeof(int), 155 .maxlen = sizeof(int), [all …]
|
D | xfs_extent_busy.c | 459 if (bbno - fbno >= args->maxlen) { in xfs_extent_busy_trim() 462 } else if (fend - bend >= args->maxlen * 4) { in xfs_extent_busy_trim()
|
/fs/romfs/ |
D | storage.c | 37 unsigned long pos, size_t maxlen) in romfs_mtd_strnlen() argument 46 while (maxlen > 0) { in romfs_mtd_strnlen() 47 segment = min_t(size_t, maxlen, 16); in romfs_mtd_strnlen() 54 maxlen -= len; in romfs_mtd_strnlen() 238 unsigned long pos, size_t maxlen) in romfs_dev_strnlen() argument 245 if (maxlen > limit - pos) in romfs_dev_strnlen() 246 maxlen = limit - pos; in romfs_dev_strnlen() 250 return romfs_mtd_strnlen(sb, pos, maxlen); in romfs_dev_strnlen() 254 return romfs_blk_strnlen(sb, pos, maxlen); in romfs_dev_strnlen()
|
D | internal.h | 41 unsigned long pos, size_t maxlen);
|
/fs/coda/ |
D | sysctl.c | 21 .maxlen = sizeof(int), 28 .maxlen = sizeof(int), 35 .maxlen = sizeof(int),
|
/fs/cifs/ |
D | cifs_unicode.h | 98 char *cifs_strndup_from_utf16(const char *src, const int maxlen, 101 extern int cifsConvertToUTF16(__le16 *target, const char *source, int maxlen, 104 extern __le16 *cifs_strndup_to_utf16(const char *src, const int maxlen, 194 UniStrnlen(const wchar_t *ucs1, int maxlen) in UniStrnlen() argument 200 if (i >= maxlen) in UniStrnlen()
|
D | cifs_unicode.c | 347 cifs_strndup_from_utf16(const char *src, const int maxlen, in cifs_strndup_from_utf16() argument 354 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16() 359 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16() 362 dst = kstrndup(src, maxlen, GFP_KERNEL); in cifs_strndup_from_utf16() 616 cifs_strndup_to_utf16(const char *src, const int maxlen, int *utf16_len, in cifs_strndup_to_utf16() argument 622 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16()
|
/fs/xfs/libxfs/ |
D | xfs_alloc.c | 399 ASSERT(rlen <= args->maxlen); in xfs_alloc_fix_len() 400 if (args->prod <= 1 || rlen < args->mod || rlen == args->maxlen || in xfs_alloc_fix_len() 413 ASSERT(rlen >= args->minlen && rlen <= args->maxlen); in xfs_alloc_fix_len() 763 acur->cur_len = args->maxlen; in xfs_alloc_cur_setup() 780 error = xfs_alloc_lookup_ge(acur->cnt, 0, args->maxlen, &i); in xfs_alloc_cur_setup() 866 args->len = XFS_EXTLEN_MIN(lena, args->maxlen); in xfs_alloc_cur_check() 905 if (acur->diff == 0 && acur->len == args->maxlen) in xfs_alloc_cur_check() 1135 ASSERT(args->maxlen > 0); in xfs_alloc_ag_vextent() 1136 ASSERT(args->minlen <= args->maxlen); in xfs_alloc_ag_vextent() 1163 ASSERT(args->len <= args->maxlen); in xfs_alloc_ag_vextent() [all …]
|
/fs/nfs/ |
D | sysctl.c | 21 .maxlen = sizeof(nfs_mountpoint_expiry_timeout), 28 .maxlen = sizeof(nfs_congestion_kb),
|
D | nfs4sysctl.c | 24 .maxlen = sizeof(int), 33 .maxlen = sizeof(int),
|
D | callback_xdr.c | 76 const char **str, size_t maxlen) in decode_string() argument 80 err = xdr_stream_decode_opaque_inline(xdr, (void **)str, maxlen); in decode_string() 868 long maxlen; in process_op() local 899 maxlen = xdr_out->end - xdr_out->p; in process_op() 900 if (maxlen > 0 && maxlen < PAGE_SIZE) { in process_op()
|
/fs/ksmbd/ |
D | unicode.c | 291 char *smb_strndup_from_utf16(const char *src, const int maxlen, in smb_strndup_from_utf16() argument 299 len = smb_utf16_bytes((__le16 *)src, maxlen, codepage); in smb_strndup_from_utf16() 304 ret = smb_from_utf16(dst, (__le16 *)src, len, maxlen, codepage, in smb_strndup_from_utf16() 311 len = strnlen(src, maxlen); in smb_strndup_from_utf16()
|
D | unicode.h | 68 char *smb_strndup_from_utf16(const char *src, const int maxlen, 156 static inline size_t UniStrnlen(const wchar_t *ucs1, int maxlen) in UniStrnlen() argument 162 if (i >= maxlen) in UniStrnlen()
|
/fs/lockd/ |
D | svc.c | 549 .maxlen = sizeof(unsigned long), 558 .maxlen = sizeof(unsigned long), 567 .maxlen = sizeof(int), 576 .maxlen = sizeof(int), 585 .maxlen = sizeof(int), 592 .maxlen = sizeof(int),
|
/fs/fscache/ |
D | main.c | 70 .maxlen = sizeof(unsigned), 78 .maxlen = sizeof(unsigned),
|
/fs/ocfs2/ |
D | stackglue.c | 657 .maxlen = OCFS2_MAX_HB_CTL_PATH, 668 .maxlen = 0, 679 .maxlen = 0, 690 .maxlen = 0,
|
/fs/ntfs/ |
D | sysctl.c | 27 .maxlen = sizeof(debug_msgs),
|
/fs/btrfs/ |
D | discard.c | 483 u64 maxlen = 0; in btrfs_discard_workfn() local 492 maxlen = discard_minlen[discard_index - 1]; in btrfs_discard_workfn() 497 minlen, maxlen, true); in btrfs_discard_workfn()
|
/fs/devpts/ |
D | inode.c | 51 .maxlen = sizeof(int), 59 .maxlen = sizeof(int), 67 .maxlen = sizeof(int),
|
/fs/affs/ |
D | namei.c | 323 int i, maxlen, error; in affs_symlink() local 329 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1; in affs_symlink() 356 while (i < maxlen && (c = *symname++)) { in affs_symlink()
|
/fs/befs/ |
D | linuxvfs.c | 519 int maxlen = in_len + 1; in befs_utf2nls() local 528 *out = result = kmalloc(maxlen, GFP_NOFS); in befs_utf2nls() 597 int maxlen = (3 * in_len) + 1; in befs_nls2utf() local 607 *out = result = kmalloc(maxlen, GFP_NOFS); in befs_nls2utf()
|
/fs/nfsd/ |
D | blocklayout.c | 227 size_t bufflen = 252, maxlen = 65532, len, id_len; in nfsd4_scsi_identify_device() local 267 if (len <= maxlen && retries--) { in nfsd4_scsi_identify_device()
|
/fs/sysv/ |
D | dir.c | 111 static inline int namecompare(int len, int maxlen, in namecompare() argument 114 if (len < maxlen && buffer[len]) in namecompare()
|
/fs/notify/inotify/ |
D | inotify_user.c | 65 .maxlen = sizeof(long), 74 .maxlen = sizeof(long), 83 .maxlen = sizeof(int),
|