Lines Matching refs:size

54  * the attribute has zero allocated size, i.e. there simply is no runlist.
116 * that if vcn exceeds the allocated size, we will refuse to
709 * @size: size of the destination buffer in bytes
710 * @initialized_size: initialized size of the attribute list
713 * the linear buffer @al. The maximum number of bytes copied to @al is @size
714 * bytes. Note, @size does not need to be a multiple of the cluster size. If
715 * @initialized_size is less than @size, the region in @al between
716 * @initialized_size and @size will be zeroed and not read from disk.
721 const s64 size, const s64 initialized_size)
735 if (!vol || !runlist || !al || size <= 0 || initialized_size < 0 ||
736 initialized_size > size)
739 memset(al, 0, size);
785 if (initialized_size < size) {
787 memset(al_start + initialized_size, 0, size - initialized_size);
804 if (initialized_size < size)
1341 * ntfs_attr_size_bounds_check - check a size of an attribute type for validity
1344 * @size: size which to check
1346 * Check whether the @size in bytes is valid for an attribute of @type on the
1353 const s64 size)
1357 BUG_ON(size < 0);
1359 * $ATTRIBUTE_LIST has a maximum size of 256kiB, but this is not
1362 if (unlikely(type == AT_ATTRIBUTE_LIST && size > 256 * 1024))
1370 size < sle64_to_cpu(ad->min_size)) ||
1371 ((sle64_to_cpu(ad->max_size) > 0) && size >
1431 * @new_size: new size in bytes to which to resize the attribute record @a
1464 /* Adjust @a to reflect the new size. */
1475 * @new_size: new size in bytes to which to resize the attribute value of @a
1500 * the area between the old size and @new_size.
1514 * @data_size: size of the resident data to copy to the non-resident attribute
1519 * @data_size must be equal to the attribute value size. This is needed since
1520 * we need to know the size before we can map the mft record and our callers
1521 * always know it. The reason we cannot simply read the size from the vfs
1580 * The size needs to be aligned to a cluster boundary for allocation
1609 /* Determine the size of the mapping pairs array. */
1613 ntfs_debug("Failed to get size for mapping pairs array, error "
1658 * Determine the size of the resident part of the now non-resident
1726 ni->itype.compressed.size = ni->allocated_size;
1741 vi->i_blocks = ni->itype.compressed.size >> 9;
1783 * If the old size is too small, truncate the attribute,
1784 * otherwise simply give it a larger allocated size.
1786 * allocated size is much bigger than the resident value size.
1822 /* Setup the allocated size in the ntfs inode in case it changed. */
1858 * @new_alloc_size: new size in bytes to which to extend the allocation to
1859 * @new_data_size: new size in bytes to which to extend the data to
1866 * region between the old allocated size and @data_start - 1 may be made sparse
1870 * If @new_data_size is -1, it is ignored. If it is >= 0, then the data size
1872 * vfs inode is not updated. Only the data size in the base attribute record
1875 * size as well as for @new_data_size to be greater than @new_alloc_size.
1894 * Return the new allocated size on success and -errno on error. In the case
1897 * and this is returned. This means the caller must check the returned size to
1957 /* Check if new size is allowed in $AttrDef. */
1970 "maximum allowed size for "
2027 * abort if we need to update the data size.
2030 ntfs_debug("Allocated size already exceeds requested size.");
2036 * data size.
2057 * size. ntfs_attr_record_resize() will not do anything if the size is
2170 * allocated size and the start of the data. Otherwise simply proceed
2171 * with filling the whole space between the old allocated size and the
2172 * new allocated size with clusters.
2276 /* Get the size for the new mapping pairs array for this extent. */
2283 "because determining the size for the "
2329 * We now have extended the allocated size of the attribute. Reflect
2361 ni->itype.compressed.size += new_alloc_size - allocated_size;
2363 cpu_to_sle64(ni->itype.compressed.size);
2364 vi->i_blocks = ni->itype.compressed.size >> 9;
2409 ni->itype.compressed.size += new_alloc_size -
2411 vi->i_blocks = ni->itype.compressed.size >> 9;
2419 * The only thing that is now wrong is the allocated size of the
2510 unsigned start_ofs, end_ofs, size;
2531 /* If the end is outside the inode size return -ESPIPE. */
2549 size = PAGE_SIZE;
2551 size = end_ofs;
2553 memset(kaddr + start_ofs, val, size - start_ofs);