/kernel/linux/linux-6.6/include/linux/ |
H A D | ramfs.h | 14 ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument 19 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
|
/kernel/linux/linux-6.6/mm/ |
H A D | truncate.c | 714 * @newsize: new file size 726 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument 729 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache() 741 truncate_inode_pages(mapping, newsize); in truncate_pagecache() 749 * @newsize: new file size 752 * necessary) to @newsize. It will be typically be called from the filesystem's 759 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument 763 i_size_write(inode, newsize); in truncate_setsize() 764 if (newsize > oldsize) in truncate_setsize() 765 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize() [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_iops.c | 811 xfs_off_t oldsize, newsize; in xfs_setattr_size() local 824 newsize = iattr->ia_size; in xfs_setattr_size() 829 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size() 862 if (newsize > oldsize) { in xfs_setattr_size() 863 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size() 864 error = iomap_zero_range(inode, oldsize, newsize - oldsize, in xfs_setattr_size() 873 error = filemap_write_and_wait_range(inode->i_mapping, newsize, in xfs_setattr_size() 874 newsize); in xfs_setattr_size() 877 error = iomap_truncate_page(inode, newsize, &did_zeroing, in xfs_setattr_size() 901 * And we update in-core i_size and truncate page cache beyond newsize in xfs_setattr_size() [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_iops.c | 793 xfs_off_t oldsize, newsize; in xfs_setattr_size() local 806 newsize = iattr->ia_size; in xfs_setattr_size() 811 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size() 844 if (newsize > oldsize) { in xfs_setattr_size() 845 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size() 846 error = xfs_zero_range(ip, oldsize, newsize - oldsize, in xfs_setattr_size() 855 error = filemap_write_and_wait_range(inode->i_mapping, newsize, in xfs_setattr_size() 856 newsize); in xfs_setattr_size() 859 error = xfs_truncate_page(ip, newsize, &did_zeroing); in xfs_setattr_size() 882 * And we update in-core i_size and truncate page cache beyond newsize in xfs_setattr_size() [all...] |
/third_party/curl/tests/server/ |
H A D | fake_ntlm.c | 55 size_t newsize; in printable() local 88 newsize = outsize + outincr; in printable() 89 newbuf = realloc(outbuf, newsize); in printable() 95 outsize = newsize; in printable()
|
/third_party/curl/tests/ |
H A D | memanalyze.pl | 195 my ($oldaddr, $newsize, $newaddr) = ($2, $3, $4); 203 $totalmem += $newsize; 205 $sizeataddr{$newaddr}=$newsize; 208 printf("%d more bytes ($source:$linenum)\n", $newsize);
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 950 int newsize; /* new inode size */ in xfs_dir2_sf_removename() local 987 newsize = oldsize - entsize; in xfs_dir2_sf_removename() 998 dp->i_d.di_size = newsize; in xfs_dir2_sf_removename() 1002 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename() 1026 int newsize; in xfs_dir2_sf_replace_needblock() local 1033 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace_needblock() 1036 sfp->i8count == 0 && newsize > XFS_IFORK_DSIZE(dp); in xfs_dir2_sf_replace_needblock() 1166 int newsize; /* new inode size */ in xfs_dir2_sf_toino4() local 1188 newsize = oldsize - (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino4() 1190 xfs_idata_realloc(dp, newsize, XFS_DATA_FOR in xfs_dir2_sf_toino4() 1239 int newsize; /* new inode size */ xfs_dir2_sf_toino8() local [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 946 int newsize; /* new inode size */ in xfs_dir2_sf_removename() local 983 newsize = oldsize - entsize; in xfs_dir2_sf_removename() 994 dp->i_disk_size = newsize; in xfs_dir2_sf_removename() 998 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename() 1022 int newsize; in xfs_dir2_sf_replace_needblock() local 1029 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace_needblock() 1032 sfp->i8count == 0 && newsize > xfs_inode_data_fork_size(dp); in xfs_dir2_sf_replace_needblock() 1162 int newsize; /* new inode size */ in xfs_dir2_sf_toino4() local 1184 newsize = oldsize - (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino4() 1186 xfs_idata_realloc(dp, newsize, XFS_DATA_FOR in xfs_dir2_sf_toino4() 1235 int newsize; /* new inode size */ xfs_dir2_sf_toino8() local [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | truncate.c | 807 * @newsize: new file size 819 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument 822 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache() 834 truncate_inode_pages(mapping, newsize); in truncate_pagecache() 842 * @newsize: new file size 845 * necessary) to @newsize. It will be typically be called from the filesystem's 852 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument 856 i_size_write(inode, newsize); in truncate_setsize() 857 if (newsize > oldsize) in truncate_setsize() 858 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize() [all...] |
/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
H A D | fdt_rw.c | 419 int newsize; in fdt_open_into() local 452 newsize = FDT_ALIGN(sizeof(struct fdt_header), 8) + mem_rsv_size in fdt_open_into() 455 if (bufsize < newsize) in fdt_open_into() 461 if (((tmp + newsize) > fdtstart) && (tmp < fdtend)) { in fdt_open_into() 464 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 469 memmove(buf, tmp, newsize); in fdt_open_into()
|
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | quota.c | 424 * @newsize: new size if write succeeds 427 * @newsize; it returns false otherwise. 429 bool ceph_quota_is_max_bytes_exceeded(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_exceeded() argument 437 if (newsize <= size) in ceph_quota_is_max_bytes_exceeded() 440 return check_quota_exceeded(inode, QUOTA_CHECK_MAX_BYTES_OP, (newsize - size)); in ceph_quota_is_max_bytes_exceeded() 446 * @newsize: new size if write succeeds 448 * This function returns true if the new file size @newsize will be consuming 451 bool ceph_quota_is_max_bytes_approaching(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_approaching() argument 459 if (newsize <= size) in ceph_quota_is_max_bytes_approaching() 463 (newsize in ceph_quota_is_max_bytes_approaching() [all...] |
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | quota.c | 431 * @newsize: new size if write succeeds 434 * @newsize; it returns false otherwise. 436 bool ceph_quota_is_max_bytes_exceeded(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_exceeded() argument 444 if (newsize <= size) in ceph_quota_is_max_bytes_exceeded() 447 return check_quota_exceeded(inode, QUOTA_CHECK_MAX_BYTES_OP, (newsize - size)); in ceph_quota_is_max_bytes_exceeded() 453 * @newsize: new size if write succeeds 455 * This function returns true if the new file size @newsize will be consuming 458 bool ceph_quota_is_max_bytes_approaching(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_approaching() argument 466 if (newsize <= size) in ceph_quota_is_max_bytes_approaching() 470 (newsize in ceph_quota_is_max_bytes_approaching() [all...] |
/kernel/linux/linux-6.6/scripts/dtc/libfdt/ |
H A D | fdt_rw.c | 423 int newsize; in fdt_open_into() local 458 newsize = FDT_ALIGN(sizeof(struct fdt_header), 8) + mem_rsv_size in fdt_open_into() 461 if (bufsize < newsize) in fdt_open_into() 467 if (((tmp + newsize) > fdtstart) && (tmp < fdtend)) { in fdt_open_into() 470 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 476 memmove(buf, tmp, newsize); in fdt_open_into()
|
/third_party/libuv/src/unix/ |
H A D | os390-syscalls.c | 107 unsigned int newsize; in maybe_resize() local 123 newsize = next_power_of_two(len); in maybe_resize() 124 newlst = uv__reallocf(lst->items, newsize * sizeof(lst->items[0])); in maybe_resize() 128 for (i = lst->size; i < newsize; ++i) in maybe_resize() 132 newlst[newsize - 1] = event; in maybe_resize() 135 lst->size = newsize; in maybe_resize()
|
/third_party/node/deps/uv/src/unix/ |
H A D | os390-syscalls.c | 107 unsigned int newsize; in maybe_resize() local 123 newsize = next_power_of_two(len); in maybe_resize() 124 newlst = uv__reallocf(lst->items, newsize * sizeof(lst->items[0])); in maybe_resize() 128 for (i = lst->size; i < newsize; ++i) in maybe_resize() 132 newlst[newsize - 1] = event; in maybe_resize() 135 lst->size = newsize; in maybe_resize()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap09.c | 52 off_t newsize; member 75 TEST(ftruncate(fd, TC[i].newsize)); in main()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | attrib.c | 1825 static int ntfs_attr_truncate_i(ntfs_attr *na, const s64 newsize, 5280 static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize); 5285 * @newsize: new size (in bytes) to which to resize the attribute 5287 * Change the size of a resident, open ntfs attribute @na to @newsize bytes. 5297 * ERANGE - @newsize is not valid for the attribute type of @na. 5300 static int ntfs_resident_attr_resize_i(ntfs_attr *na, const s64 newsize, argument 5310 (long long)newsize); 5325 * sizes against @newsize and fail if @newsize is out of bounds. 5327 if (ntfs_attr_size_bounds_check(vol, na->type, newsize) < 5551 ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize) global() argument 6344 ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize) global() argument 6499 ntfs_non_resident_attr_expand_i(ntfs_attr *na, const s64 newsize, hole_type holes) global() argument 6735 ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize, hole_type holes) global() argument 6767 ntfs_attr_truncate_i(ntfs_attr *na, const s64 newsize, hole_type holes) global() argument 6848 ntfs_attr_truncate(ntfs_attr *na, const s64 newsize) global() argument 6862 ntfs_attr_truncate_solid(ntfs_attr *na, const s64 newsize) global() argument [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-kye.c | 405 unsigned int newsize; in kye_tablet_fixup() local 423 newsize = info->has_punk ? sizeof(kye_tablet_rdesc) : 112; in kye_tablet_fixup() 424 memcpy(rdesc, kye_tablet_rdesc, newsize); in kye_tablet_fixup() 444 if (newsize + info->control_rsize > *rsize) in kye_tablet_fixup() 447 memcpy(rdesc + newsize, info->control_rdesc, info->control_rsize); in kye_tablet_fixup() 448 newsize += info->control_rsize; in kye_tablet_fixup() 452 *rsize = newsize; in kye_tablet_fixup()
|
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | inode.c | 377 loff_t newsize; in jfs_truncate_nolock() local 398 newsize = xtTruncate(tid, ip, length, in jfs_truncate_nolock() 400 if (newsize < 0) { in jfs_truncate_nolock() 412 } while (newsize > length); /* Truncate isn't always atomic */ in jfs_truncate_nolock()
|
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | inode.c | 367 loff_t newsize; in jfs_truncate_nolock() local 388 newsize = xtTruncate(tid, ip, length, in jfs_truncate_nolock() 390 if (newsize < 0) { in jfs_truncate_nolock() 402 } while (newsize > length); /* Truncate isn't always atomic */ in jfs_truncate_nolock()
|
/third_party/ffmpeg/libavcodec/ |
H A D | libtheoraenc.c | 62 int newsize = avc_context->extradata_size + 2 + packet->bytes; in concatenate_packet() local 69 } else if (newsize < avc_context->extradata_size) { in concatenate_packet() 72 if ((err = av_reallocp(&avc_context->extradata, newsize)) < 0) { in concatenate_packet() 82 avc_context->extradata_size = newsize; in concatenate_packet()
|
/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | bmap.c | 1365 * @newsize: The new smaller size 1372 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument 1379 while (oldsize != newsize) { in gfs2_journaled_truncate() 1383 chunk = oldsize - newsize; in gfs2_journaled_truncate() 1407 static int trunc_start(struct inode *inode, u64 newsize) in trunc_start() argument 1418 unsigned int offs = newsize & (blocksize - 1); in trunc_start() 1420 error = gfs2_block_zero_range(inode, newsize, in trunc_start() 1440 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + newsize); in trunc_start() 1444 i_size_write(inode, newsize); in trunc_start() 1449 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start() 2062 do_shrink(struct inode *inode, u64 newsize) do_shrink() argument 2175 gfs2_setattr_size(struct inode *inode, u64 newsize) gfs2_setattr_size() argument [all...] |
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | bmap.c | 1309 * @newsize: The new smaller size 1316 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument 1323 while (oldsize != newsize) { in gfs2_journaled_truncate() 1327 chunk = oldsize - newsize; in gfs2_journaled_truncate() 1351 static int trunc_start(struct inode *inode, u64 newsize) in trunc_start() argument 1362 unsigned int offs = newsize & (blocksize - 1); in trunc_start() 1364 error = gfs2_block_zero_range(inode, newsize, in trunc_start() 1384 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + newsize); in trunc_start() 1388 i_size_write(inode, newsize); in trunc_start() 1393 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start() 2019 do_shrink(struct inode *inode, u64 newsize) do_shrink() argument 2124 gfs2_setattr_size(struct inode *inode, u64 newsize) gfs2_setattr_size() argument [all...] |
/third_party/backends/backend/ |
H A D | hp-accessor.c | 75 hp_data_resize (HpData this, size_t newsize) in hp_data_resize() argument 78 if (this->bufsiz != newsize) in hp_data_resize() 81 this->buf = sanei_hp_realloc(this->buf, newsize); in hp_data_resize() 83 this->bufsiz = newsize; in hp_data_resize() 97 size_t newsize = this->bufsiz; in hp_data_alloc() local 112 while (newsize < this->length + sz) in hp_data_alloc() 113 newsize += DATA_SIZE_INCREMENT; in hp_data_alloc() 114 hp_data_resize(this, newsize); in hp_data_alloc()
|
/third_party/python/Objects/ |
H A D | tupleobject.c | 915 _PyTuple_Resize(PyObject **pv, Py_ssize_t newsize) in _PyTuple_Resize() argument 932 if (oldsize == newsize) { in _PyTuple_Resize() 935 if (newsize == 0) { in _PyTuple_Resize() 947 *pv = PyTuple_New(newsize); in _PyTuple_Resize() 962 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize() 965 sv = PyObject_GC_Resize(PyTupleObject, v, newsize); in _PyTuple_Resize() 973 if (newsize > oldsize) in _PyTuple_Resize() 975 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
|