Lines Matching defs:size

570  * gfs2_hole_size - figure out the size of a hole
575 * @iomap: The iomap to store the hole size in
649 * worth of data -- with a default block size of 4K, that's slightly
651 * allocations, we would probably still want to limit the iomap size we
783 * gfs2_alloc_size - Compute the maximum allocation size
786 * @size: Requested size in blocks
788 * Compute the maximum size of the next allocation at @mp.
790 * Returns: size in blocks
792 static u64 gfs2_alloc_size(struct inode *inode, struct metapath *mp, u64 size)
800 * __gfs2_iomap_get, before and after unstuffing. The size we return the
802 * allocation sizes right. The size we return the second time must
810 if (size > maxsize)
811 size = maxsize;
812 return size;
817 if (end - first > size)
818 end = first + size;
843 loff_t size = i_size_read(inode);
871 if (pos >= size) {
881 iomap->length = size;
933 if (pos >= size)
938 iomap->length = size - iomap->offset;
950 if (pos < size && height == ip->i_height)
1196 * The size of the requested mapping is defined in bh_map->b_size.
1200 * bh_map->b_size to indicate the size of the mapping when @lblock and
1201 * successive blocks are mapped, up to the requested size.
1308 * @oldsize: The original (larger) size
1309 * @newsize: The new smaller size
1502 /* The size of our transactions will be unknown until we
1545 size, so we need to end the transaction and start a
1698 * @length: the size of the hole (or 0 for truncate)
1754 * Clip the end at the maximum file size for the given height:
2011 * @newsize: the size to make the file
2013 * Called with an exclusive lock on @inode. The @size must
2014 * be equal to or smaller than the current inode size.
2038 * do_grow - Touch and update inode size
2040 * @size: The new size
2043 * may also increase the size of the inode. This function
2044 * must not be called with @size any smaller than the current
2045 * inode size.
2049 * code which will result in a buffer overrun if the size is larger
2050 * than the max stuffed file size. In order to prevent this from
2052 * just update the inode size directly.
2057 static int do_grow(struct inode *inode, u64 size)
2066 if (gfs2_is_stuffed(ip) && size > gfs2_max_stuffed_size(ip)) {
2095 truncate_setsize(inode, size);
2113 * gfs2_setattr_size - make a file a given size
2115 * @newsize: the size to make the file
2117 * The file size can grow, shrink, or stay the same size. This
2244 u64 size;
2250 size = (lblock_stop - lblock) << shift;
2257 bh.b_size = size;
2264 size -= bh.b_size;
2266 } while(size > 0);
2276 (unsigned long long)(i_size_read(jd->jd_inode) - size),
2278 fs_warn(sdp, "bmap=%d lblock=%llu block=%llu, state=0x%08lx, size=%llu\n",
2300 u64 lblock, lblock_stop, size;
2320 size = (lblock_stop - lblock) << shift;
2323 bh.b_size = size;
2327 size -= bh.b_size;
2329 } while(size > 0);