Lines Matching defs:size

47  * When a leaf is completely full, the size of the hash table can be
48 * doubled unless it is already at the maximum size which is hard coded into
50 * but never before the maximum hash table size has been reached.
120 unsigned int offset, unsigned int size)
130 memcpy(dibh->b_data + offset + sizeof(struct gfs2_dinode), buf, size);
131 if (ip->i_inode.i_size < offset + size)
132 i_size_write(&ip->i_inode, offset + size);
138 return size;
148 * @size: The amount of data to write
153 u64 offset, unsigned int size)
164 if (!size)
167 if (gfs2_is_stuffed(ip) && offset + size <= gfs2_max_stuffed_size(ip))
169 size);
183 while (copied < size) {
187 amount = size - copied;
244 unsigned int size)
251 memcpy(buf, dibh->b_data + sizeof(struct gfs2_dinode), size);
255 return (error) ? error : size;
263 * @size: Amount of data to transfer
268 unsigned int size)
278 return gfs2_dir_read_stuffed(ip, buf, size);
286 while (copied < size) {
290 amount = size - copied;
428 * name->len holds size of block.
495 * - Inode located within filesystem size (and on valid block)
504 unsigned int size, unsigned int len, int first)
507 if (unlikely(size < sizeof(struct gfs2_dirent)))
513 if (unlikely(offset + size > len))
521 size))
561 unsigned size;
571 size = be16_to_cpu(dent->de_rec_len);
572 if (gfs2_check_dirent(GFS2_SB(inode), dent, offset, size, len, 1))
578 offset += size;
583 size = be16_to_cpu(dent->de_rec_len);
584 if (gfs2_check_dirent(GFS2_SB(inode), dent, offset, size,
1141 * dir_double_exhash - Double size of ExHash table
1194 /* Replace original hash table & size */
1321 static void *gfs2_alloc_sort_buffer(unsigned size)
1325 if (size < KMALLOC_MAX_SIZE)
1326 ptr = kmalloc(size, GFP_NOFS | __GFP_NOWARN);
1328 ptr = __vmalloc(size, GFP_NOFS);
1470 * @hsize: hash table size
1711 * we've expanded the hash table to max size and also split existing
1983 unsigned int x, size = len * sizeof(u64);
1992 ht = kzalloc(size, GFP_NOFS | __GFP_NOWARN);
1994 ht = __vmalloc(size, GFP_NOFS | __GFP_NOWARN | __GFP_ZERO);
2033 rg_blocks + (DIV_ROUND_UP(size, sdp->sd_jbsize) + 1) +
2059 error = gfs2_dir_write_data(dip, ht, index * sizeof(u64), size);
2060 if (error != size) {