Lines Matching refs:newsize
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()
146 if (newsize < size) { in ramfs_nommu_resize()
147 ret = nommu_shrink_inode_mappings(inode, size, newsize); in ramfs_nommu_resize()
152 truncate_setsize(inode, newsize); in ramfs_nommu_resize()