Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 25 of 54) sorted by relevance

123

/linux/fs/ramfs/
A Dfile-nommu.c72 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()
139 if (unlikely(newsize >> 32)) in ramfs_nommu_resize()
142 return ramfs_nommu_expand_for_mapping(inode, newsize); in ramfs_nommu_resize()
146 if (newsize < size) { in ramfs_nommu_resize()
147 ret = nommu_shrink_inode_mappings(inode, size, newsize); in ramfs_nommu_resize()
[all …]
/linux/drivers/acpi/x86/
A Dapple.c29 unsigned int i, j = 0, newsize = 0, numprops, numvalid; in acpi_extract_apple_properties() local
77 newsize += key->string.length + 1; in acpi_extract_apple_properties()
79 newsize += val->buffer.length; in acpi_extract_apple_properties()
91 newsize += (1 + 3 * numvalid) * sizeof(union acpi_object); in acpi_extract_apple_properties()
92 newprops = ACPI_ALLOCATE_ZEROED(newsize); in acpi_extract_apple_properties()
130 WARN_ON(free_space != (void *)newprops + newsize); in acpi_extract_apple_properties()
/linux/Documentation/RCU/
A DarrayRCU.rst75 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/mm/
A Dreadahead.c315 unsigned long newsize = roundup_pow_of_two(size); in get_init_ra_size() local
317 if (newsize <= max / 32) in get_init_ra_size()
318 newsize = newsize * 4; in get_init_ra_size()
319 else if (newsize <= max / 4) in get_init_ra_size()
320 newsize = newsize * 2; in get_init_ra_size()
322 newsize = max; in get_init_ra_size()
324 return newsize; in get_init_ra_size()
A Dtruncate.c735 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument
738 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache()
750 truncate_inode_pages(mapping, newsize); in truncate_pagecache()
768 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument
772 i_size_write(inode, newsize); in truncate_setsize()
773 if (newsize > oldsize) in truncate_setsize()
774 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize()
775 truncate_pagecache(inode, newsize); in truncate_setsize()
A Dutil.c642 void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags) in kvrealloc() argument
646 if (oldsize >= newsize) in kvrealloc()
648 newp = kvmalloc(newsize, flags); in kvrealloc()
A Dshmem.c178 loff_t oldsize, loff_t newsize) in shmem_reacct_size() argument
181 if (VM_ACCT(newsize) > VM_ACCT(oldsize)) in shmem_reacct_size()
183 VM_ACCT(newsize) - VM_ACCT(oldsize)); in shmem_reacct_size()
184 else if (VM_ACCT(newsize) < VM_ACCT(oldsize)) in shmem_reacct_size()
1094 loff_t newsize = attr->ia_size; in shmem_setattr() local
1101 if (newsize != oldsize) { in shmem_setattr()
1103 oldsize, newsize); in shmem_setattr()
1106 i_size_write(inode, newsize); in shmem_setattr()
1109 if (newsize <= oldsize) { in shmem_setattr()
1110 loff_t holebegin = round_up(newsize, PAGE_SIZE); in shmem_setattr()
[all …]
/linux/fs/xfs/
A Dxfs_iops.c861 xfs_off_t oldsize, newsize; in xfs_setattr_size() local
874 newsize = iattr->ia_size; in xfs_setattr_size()
912 if (newsize > oldsize) { in xfs_setattr_size()
913 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size()
924 newsize); in xfs_setattr_size()
927 error = iomap_truncate_page(inode, newsize, &did_zeroing, in xfs_setattr_size()
955 truncate_setsize(inode, newsize); in xfs_setattr_size()
968 ip->i_disk_size, newsize - 1); in xfs_setattr_size()
991 if (newsize != oldsize && in xfs_setattr_size()
1010 ip->i_disk_size = newsize; in xfs_setattr_size()
[all …]
/linux/scripts/dtc/
A Ddata.c27 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/fs/xfs/libxfs/
A Dxfs_dir2_sf.c948 int newsize; /* new inode size */ in xfs_dir2_sf_removename() local
985 newsize = oldsize - entsize; in xfs_dir2_sf_removename()
996 dp->i_disk_size = newsize; in xfs_dir2_sf_removename()
1000 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename()
1024 int newsize; in xfs_dir2_sf_replace_needblock() local
1164 int newsize; /* new inode size */ in xfs_dir2_sf_toino4() local
1188 xfs_idata_realloc(dp, newsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4()
1220 dp->i_disk_size = newsize; in xfs_dir2_sf_toino4()
1237 int newsize; /* new inode size */ in xfs_dir2_sf_toino8() local
1261 xfs_idata_realloc(dp, newsize, XFS_DATA_FORK); in xfs_dir2_sf_toino8()
[all …]
/linux/include/linux/
A Dramfs.h13 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/fs/ceph/
A Dquota.c426 bool ceph_quota_is_max_bytes_exceeded(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_exceeded() argument
434 if (newsize <= size) in ceph_quota_is_max_bytes_exceeded()
437 return check_quota_exceeded(inode, QUOTA_CHECK_MAX_BYTES_OP, (newsize - size)); in ceph_quota_is_max_bytes_exceeded()
448 bool ceph_quota_is_max_bytes_approaching(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_approaching() argument
456 if (newsize <= size) in ceph_quota_is_max_bytes_approaching()
460 (newsize - size)); in ceph_quota_is_max_bytes_approaching()
/linux/scripts/dtc/libfdt/
A Dfdt_rw.c423 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/fs/jfs/
A Dinode.c377 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()
/linux/arch/sh/mm/
A Dpmb.c657 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/fs/gfs2/
A Dbmap.c1315 while (oldsize != newsize) { in gfs2_journaled_truncate()
1319 chunk = oldsize - newsize; in gfs2_journaled_truncate()
1354 unsigned int offs = newsize & (blocksize - 1); in trunc_start()
1380 i_size_write(inode, newsize); in trunc_start()
1387 truncate_pagecache(inode, newsize); in trunc_start()
2017 error = trunc_start(inode, newsize); in do_shrink()
2023 error = punch_hole(ip, newsize, 0); in do_shrink()
2132 ret = inode_newsize_ok(inode, newsize); in gfs2_setattr_size()
2142 if (newsize >= inode->i_size) { in gfs2_setattr_size()
2143 ret = do_grow(inode, newsize); in gfs2_setattr_size()
[all …]
/linux/fs/udf/
A Dinode.c667 partial_final_block = newsize & (sb->s_blocksize - 1); in udf_extend_file()
685 iinfo->i_lenExtents = newsize; in udf_extend_file()
1228 int udf_setsize(struct inode *inode, loff_t newsize) in udf_setsize() argument
1241 if (newsize > inode->i_size) { in udf_setsize()
1251 iinfo->i_lenAlloc = newsize; in udf_setsize()
1255 err = udf_extend_file(inode, newsize); in udf_setsize()
1262 truncate_setsize(inode, newsize); in udf_setsize()
1268 0x00, bsize - newsize - in udf_setsize()
1270 iinfo->i_lenAlloc = newsize; in udf_setsize()
1271 truncate_setsize(inode, newsize); in udf_setsize()
[all …]
/linux/fs/affs/
A Dfile.c560 affs_extent_file_ofs(struct inode *inode, u32 newsize) in affs_extent_file_ofs() argument
568 pr_debug("%s(%lu, %d)\n", __func__, inode->i_ino, newsize); in affs_extent_file_ofs()
578 tmp = min(bsize - boff, newsize - size); in affs_extent_file_ofs()
592 while (size < newsize) { in affs_extent_file_ofs()
597 tmp = min(bsize, newsize - size); in affs_extent_file_ofs()
622 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs()
626 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs()
/linux/fs/ext2/
A Dinode.c1285 static int ext2_setsize(struct inode *inode, loff_t newsize) in ext2_setsize() argument
1300 error = iomap_zero_range(inode, newsize, in ext2_setsize()
1301 PAGE_ALIGN(newsize) - newsize, NULL, in ext2_setsize()
1305 newsize, ext2_get_block); in ext2_setsize()
1308 newsize, ext2_get_block); in ext2_setsize()
1313 truncate_setsize(inode, newsize); in ext2_setsize()
1314 __ext2_truncate_blocks(inode, newsize); in ext2_setsize()
/linux/drivers/md/
A Dmd-cluster.h30 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
/linux/drivers/md/bcache/
A Dbset.c134 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/fs/f2fs/
A Dxattr.c636 int found, newsize; in __f2fs_setxattr() local
690 newsize = XATTR_ALIGN(sizeof(struct f2fs_xattr_entry) + len + size); in __f2fs_setxattr()
703 if (unlikely(free < newsize)) { in __f2fs_setxattr()
738 new_hsize += newsize; in __f2fs_setxattr()
/linux/fs/nfs/
A Dnfs4session.c39 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/drivers/block/rnbd/
A Drnbd-clt.h155 int rnbd_clt_resize_disk(struct rnbd_clt_dev *dev, size_t newsize);
/linux/fs/nilfs2/
A Dioctl.c1019 __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()

Completed in 81 milliseconds

123