/linux-6.1.9/fs/ramfs/ |
D | file-nommu.c | 62 int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument 72 order = get_order(newsize); in ramfs_nommu_expand_for_mapping() 76 ret = inode_newsize_ok(inode, newsize); in ramfs_nommu_expand_for_mapping() 80 i_size_write(inode, newsize); in ramfs_nommu_expand_for_mapping() 90 npages = (newsize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_expand_for_mapping() 99 newsize = PAGE_SIZE * npages; in ramfs_nommu_expand_for_mapping() 101 memset(data, 0, newsize); in ramfs_nommu_expand_for_mapping() 132 static int ramfs_nommu_resize(struct inode *inode, loff_t newsize, loff_t size) in ramfs_nommu_resize() argument 139 if (unlikely(newsize >> 32)) in ramfs_nommu_resize() 142 return ramfs_nommu_expand_for_mapping(inode, newsize); in ramfs_nommu_resize() [all …]
|
/linux-6.1.9/drivers/acpi/x86/ |
D | apple.c | 30 unsigned int i, j = 0, newsize = 0, numprops, numvalid; in acpi_extract_apple_properties() local 78 newsize += key->string.length + 1; in acpi_extract_apple_properties() 80 newsize += val->buffer.length; in acpi_extract_apple_properties() 92 newsize += (1 + 3 * numvalid) * sizeof(union acpi_object); in acpi_extract_apple_properties() 93 newprops = ACPI_ALLOCATE_ZEROED(newsize); in acpi_extract_apple_properties() 131 WARN_ON(free_space != (void *)newprops + newsize); in acpi_extract_apple_properties()
|
/linux-6.1.9/Documentation/RCU/ |
D | arrayRCU.rst | 75 static int grow_ary(struct ipc_ids* ids, int newsize) 82 if(newsize > IPCMNI) 83 newsize = IPCMNI; 84 if(newsize <= size) 85 return newsize; 87 new = ipc_rcu_alloc(sizeof(struct kern_ipc_perm *)*newsize + 91 new->size = newsize; 95 for(i=size;i<newsize;i++) { 108 return newsize;
|
/linux-6.1.9/mm/ |
D | readahead.c | 346 unsigned long newsize = roundup_pow_of_two(size); in get_init_ra_size() local 348 if (newsize <= max / 32) in get_init_ra_size() 349 newsize = newsize * 4; in get_init_ra_size() 350 else if (newsize <= max / 4) in get_init_ra_size() 351 newsize = newsize * 2; in get_init_ra_size() 353 newsize = max; in get_init_ra_size() 355 return newsize; in get_init_ra_size()
|
D | truncate.c | 738 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument 741 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache() 753 truncate_inode_pages(mapping, newsize); in truncate_pagecache() 771 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument 775 i_size_write(inode, newsize); in truncate_setsize() 776 if (newsize > oldsize) in truncate_setsize() 777 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize() 778 truncate_pagecache(inode, newsize); in truncate_setsize()
|
/linux-6.1.9/fs/xfs/ |
D | xfs_iops.c | 787 xfs_off_t oldsize, newsize; in xfs_setattr_size() local 800 newsize = iattr->ia_size; in xfs_setattr_size() 805 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size() 838 if (newsize > oldsize) { in xfs_setattr_size() 839 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size() 840 error = xfs_zero_range(ip, oldsize, newsize - oldsize, in xfs_setattr_size() 849 error = filemap_write_and_wait_range(inode->i_mapping, newsize, in xfs_setattr_size() 850 newsize); in xfs_setattr_size() 853 error = xfs_truncate_page(ip, newsize, &did_zeroing); in xfs_setattr_size() 880 truncate_setsize(inode, newsize); in xfs_setattr_size() [all …]
|
/linux-6.1.9/include/linux/ |
D | ramfs.h | 13 ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument 18 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
|
/linux-6.1.9/scripts/dtc/ |
D | data.c | 27 unsigned int newsize; in data_grow_for() local 34 newsize = xlen; in data_grow_for() 36 while ((d.len + xlen) > newsize) in data_grow_for() 37 newsize *= 2; in data_grow_for() 39 nd.val = xrealloc(d.val, newsize); in data_grow_for()
|
/linux-6.1.9/fs/xfs/libxfs/ |
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_FORK); in xfs_dir2_sf_toino4() [all …]
|
/linux-6.1.9/scripts/dtc/libfdt/ |
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()
|
/linux-6.1.9/fs/ceph/ |
D | quota.c | 431 bool ceph_quota_is_max_bytes_exceeded(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_exceeded() argument 439 if (newsize <= size) in ceph_quota_is_max_bytes_exceeded() 442 return check_quota_exceeded(inode, QUOTA_CHECK_MAX_BYTES_OP, (newsize - size)); in ceph_quota_is_max_bytes_exceeded() 453 bool ceph_quota_is_max_bytes_approaching(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_approaching() argument 461 if (newsize <= size) in ceph_quota_is_max_bytes_approaching() 465 (newsize - size)); in ceph_quota_is_max_bytes_approaching()
|
/linux-6.1.9/fs/jfs/ |
D | inode.c | 372 loff_t newsize; in jfs_truncate_nolock() local 393 newsize = xtTruncate(tid, ip, length, in jfs_truncate_nolock() 395 if (newsize < 0) { in jfs_truncate_nolock() 407 } while (newsize > length); /* Truncate isn't always atomic */ in jfs_truncate_nolock()
|
D | jfs_xtree.h | 101 extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type);
|
/linux-6.1.9/arch/sh/mm/ |
D | pmb.c | 657 unsigned long span, newsize; in pmb_merge() local 661 span = newsize = head->size; in pmb_merge() 668 newsize = span; in pmb_merge() 683 if (!depth || !pmb_size_valid(newsize)) in pmb_merge() 687 head->flags |= pmb_size_to_flags(newsize); in pmb_merge() 689 head->size = newsize; in pmb_merge()
|
/linux-6.1.9/fs/gfs2/ |
D | bmap.c | 1305 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument 1312 while (oldsize != newsize) { in gfs2_journaled_truncate() 1316 chunk = oldsize - newsize; in gfs2_journaled_truncate() 1340 static int trunc_start(struct inode *inode, u64 newsize) in trunc_start() argument 1351 unsigned int offs = newsize & (blocksize - 1); in trunc_start() 1353 error = gfs2_block_zero_range(inode, newsize, in trunc_start() 1373 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + newsize); in trunc_start() 1377 i_size_write(inode, newsize); in trunc_start() 1382 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start() 1384 truncate_pagecache(inode, newsize); in trunc_start() [all …]
|
/linux-6.1.9/fs/udf/ |
D | inode.c | 611 static int udf_extend_file(struct inode *inode, loff_t newsize) in udf_extend_file() argument 619 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; in udf_extend_file() 661 (newsize & (sb->s_blocksize - 1)); in udf_extend_file() 676 iinfo->i_lenExtents = newsize; in udf_extend_file() 1214 int udf_setsize(struct inode *inode, loff_t newsize) in udf_setsize() argument 1227 if (newsize > inode->i_size) { in udf_setsize() 1231 (udf_file_entry_alloc_offset(inode) + newsize)) { in udf_setsize() 1237 iinfo->i_lenAlloc = newsize; in udf_setsize() 1241 err = udf_extend_file(inode, newsize); in udf_setsize() 1248 truncate_setsize(inode, newsize); in udf_setsize() [all …]
|
/linux-6.1.9/drivers/md/ |
D | md-cluster.h | 30 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
|
/linux-6.1.9/fs/affs/ |
D | file.c | 557 affs_extent_file_ofs(struct inode *inode, u32 newsize) in affs_extent_file_ofs() argument 565 pr_debug("%s(%lu, %d)\n", __func__, inode->i_ino, newsize); in affs_extent_file_ofs() 575 tmp = min(bsize - boff, newsize - size); in affs_extent_file_ofs() 589 while (size < newsize) { in affs_extent_file_ofs() 594 tmp = min(bsize, newsize - size); in affs_extent_file_ofs() 619 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs() 623 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs()
|
/linux-6.1.9/fs/ext2/ |
D | inode.c | 1253 static int ext2_setsize(struct inode *inode, loff_t newsize) in ext2_setsize() argument 1268 error = dax_zero_range(inode, newsize, in ext2_setsize() 1269 PAGE_ALIGN(newsize) - newsize, NULL, in ext2_setsize() 1273 newsize, ext2_get_block); in ext2_setsize() 1278 truncate_setsize(inode, newsize); in ext2_setsize() 1279 __ext2_truncate_blocks(inode, newsize); in ext2_setsize()
|
/linux-6.1.9/drivers/block/rnbd/ |
D | rnbd-clt.h | 141 int rnbd_clt_resize_disk(struct rnbd_clt_dev *dev, sector_t newsize);
|
/linux-6.1.9/fs/nfs/ |
D | nfs4session.c | 39 static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize) in nfs4_shrink_slot_table() argument 42 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table() 46 while (newsize--) in nfs4_shrink_slot_table()
|
/linux-6.1.9/fs/f2fs/ |
D | xattr.c | 633 int found, newsize; in __f2fs_setxattr() local 700 newsize = XATTR_ALIGN(sizeof(struct f2fs_xattr_entry) + len + size); in __f2fs_setxattr() 713 if (unlikely(free < newsize)) { in __f2fs_setxattr() 748 new_hsize += newsize; in __f2fs_setxattr()
|
/linux-6.1.9/drivers/md/bcache/ |
D | bset.c | 134 size_t newsize = oldsize + u64s; in __bch_keylist_realloc() local 138 newsize = roundup_pow_of_two(newsize); in __bch_keylist_realloc() 140 if (newsize <= KEYLIST_INLINE || in __bch_keylist_realloc() 141 roundup_pow_of_two(oldsize) == newsize) in __bch_keylist_realloc() 144 new_keys = krealloc(old_keys, sizeof(uint64_t) * newsize, GFP_NOIO); in __bch_keylist_realloc()
|
/linux-6.1.9/fs/nilfs2/ |
D | ioctl.c | 1019 __u64 newsize; in nilfs_ioctl_resize() local 1030 if (copy_from_user(&newsize, argp, sizeof(newsize))) in nilfs_ioctl_resize() 1033 ret = nilfs_resize_fs(inode->i_sb, newsize); in nilfs_ioctl_resize()
|
/linux-6.1.9/security/ |
D | commoncap.c | 553 size_t newsize; in cap_convert_nscap() local 574 newsize = sizeof(struct vfs_ns_cap_data); in cap_convert_nscap() 575 nscap = kmalloc(newsize, GFP_ATOMIC); in cap_convert_nscap() 587 return newsize; in cap_convert_nscap()
|