/fs/romfs/ |
H A D | storage.c | 41 unsigned long pos, size_t maxlen) 50 while (maxlen > 0) { 51 segment = min_t(size_t, maxlen, 16); 58 maxlen -= len; 244 unsigned long pos, size_t maxlen) 251 if (maxlen > limit - pos) 252 maxlen = limit - pos; 256 return romfs_mtd_strnlen(sb, pos, maxlen); 260 return romfs_blk_strnlen(sb, pos, maxlen); 40 romfs_mtd_strnlen(struct super_block *sb, unsigned long pos, size_t maxlen) argument 243 romfs_dev_strnlen(struct super_block *sb, unsigned long pos, size_t maxlen) argument
|
/fs/adfs/ |
H A D | dir_f.c | 44 static inline int adfs_readname(char *buf, char *ptr, int maxlen) argument 48 while ((unsigned char)*ptr >= ' ' && maxlen--) {
|
/fs/affs/ |
H A D | namei.c | 338 int i, maxlen, error; local 345 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1; 371 while (i < maxlen && (c = *symname++)) {
|
/fs/cifs/ |
H A D | cifs_unicode.c | 302 * @maxlen - don't walk past this many bytes in the source string 311 cifs_strndup_from_utf16(const char *src, const int maxlen, argument 318 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); 323 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, 326 len = strnlen(src, maxlen); 494 * @maxlen - don't walk past this many bytes in the source string 504 cifs_strndup_to_utf16(const char *src, const int maxlen, int *utf16_len, argument 510 len = cifs_local_to_utf16_bytes(src, maxlen, cp);
|
H A D | cifs_unicode.h | 110 char *cifs_strndup_from_utf16(const char *src, const int maxlen, 113 extern int cifsConvertToUTF16(__le16 *target, const char *source, int maxlen, 117 extern __le16 *cifs_strndup_to_utf16(const char *src, const int maxlen, 208 UniStrnlen(const wchar_t *ucs1, int maxlen) argument 214 if (i >= maxlen)
|
/fs/minix/ |
H A D | dir.c | 139 static inline int namecompare(int len, int maxlen, argument 142 if (len < maxlen && buffer[len])
|
/fs/sysv/ |
H A D | dir.c | 113 * buffer[0..] (filled with zeroes up to buffer[0..maxlen-1]) 115 static inline int namecompare(int len, int maxlen, argument 118 if (len < maxlen && buffer[len])
|
/fs/xfs/libxfs/ |
H A D | xfs_alloc.h | 108 xfs_extlen_t maxlen; /* maximum size of extent */ member in struct:xfs_alloc_arg
|
/fs/befs/ |
H A D | linuxvfs.c | 537 int maxlen = in_len + 1; local 546 *out = result = kmalloc(maxlen, GFP_NOFS); 616 int maxlen = (3 * in_len) + 1; local 626 *out = result = kmalloc(maxlen, GFP_NOFS);
|
/fs/nfs/ |
H A D | callback_xdr.c | 832 long maxlen; local 867 maxlen = xdr_out->end - xdr_out->p; 868 if (maxlen > 0 && maxlen < PAGE_SIZE) {
|
/fs/xfs/ |
H A D | xfs_rtalloc.c | 227 * Attempt to allocate an extent minlen<=len<=maxlen starting from 228 * bitmap block bbno. If we don't get maxlen then use prod to trim 238 xfs_extlen_t maxlen, /* maximum length to allocate */ 263 * See if there's a free extent of maxlen starting at i. 266 error = xfs_rtcheck_range(mp, tp, i, maxlen, 1, &next, &stat); 272 * i for maxlen is all free, allocate and return that. 274 error = xfs_rtallocate_range(mp, tp, i, maxlen, rbpp, 279 *len = maxlen; 289 if (minlen < maxlen) { 310 * Searched the whole thing & didn't find a maxlen fre 233 xfs_rtallocate_extent_block( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bbno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_rtblock_t *nextp, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument 346 xfs_rtallocate_extent_exact( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument 425 xfs_rtallocate_extent_near( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument 620 xfs_rtallocate_extent_size( xfs_mount_t *mp, xfs_trans_t *tp, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument 1101 xfs_rtallocate_extent( xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_alloctype_t type, int wasdel, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument [all...] |
/fs/gfs2/ |
H A D | bmap.c | 432 * @maxlen: The max number of data blocks to alloc 452 const size_t maxlen) 479 dblks = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, 486 dblks = min(maxlen, (size_t)(ptrs_per_blk - 609 const size_t maxlen = bh_map->b_size >> inode->i_blkbits; local 620 BUG_ON(maxlen == 0); 655 len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, &eob); 675 ret = gfs2_bmap_alloc(inode, lblock, bh_map, &mp, ret, height, maxlen); 448 gfs2_bmap_alloc(struct inode *inode, const sector_t lblock, struct buffer_head *bh_map, struct metapath *mp, const unsigned int sheight, const unsigned int height, const size_t maxlen) argument
|
/fs/reiserfs/ |
H A D | inode.c | 1739 int maxlen = *lenp; local 1741 if (parent && (maxlen < 5)) { 1744 } else if (maxlen < 3) { 1757 if (maxlen >= 6) {
|
/fs/proc/ |
H A D | base.c | 1299 const size_t maxlen = sizeof(buffer) - 1; local 1302 if (copy_from_user(buffer, buf, count > maxlen ? maxlen : count))
|