Searched refs:oldsize (Results 1 – 3 of 3) sorted by relevance
854 loff_t oldsize = inode->i_size; in truncate_setsize() local857 if (newsize > oldsize) in truncate_setsize()858 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize()
190 loff_t oldsize, loff_t newsize) in shmem_reacct_size() argument193 if (VM_ACCT(newsize) > VM_ACCT(oldsize)) in shmem_reacct_size()195 VM_ACCT(newsize) - VM_ACCT(oldsize)); in shmem_reacct_size()196 else if (VM_ACCT(newsize) < VM_ACCT(oldsize)) in shmem_reacct_size()197 vm_unacct_memory(VM_ACCT(oldsize) - VM_ACCT(newsize)); in shmem_reacct_size()1107 loff_t oldsize = inode->i_size; in shmem_setattr() local1111 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in shmem_setattr()1112 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in shmem_setattr()1115 if (newsize != oldsize) { in shmem_setattr()1117 oldsize, newsize); in shmem_setattr()[all …]
676 void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags) in kvrealloc() argument680 if (oldsize >= newsize) in kvrealloc()685 memcpy(newp, p, oldsize); in kvrealloc()