Lines Matching refs:new_size
477 static int ntfs_truncate(struct inode *inode, loff_t new_size) in ntfs_truncate() argument
488 if (ni->i_valid > new_size) in ntfs_truncate()
489 ni->i_valid = new_size; in ntfs_truncate()
491 err = block_truncate_page(inode->i_mapping, new_size, in ntfs_truncate()
497 new_valid = ntfs_up_block(sb, min_t(u64, ni->i_valid, new_size)); in ntfs_truncate()
499 truncate_setsize(inode, new_size); in ntfs_truncate()
504 err = attr_set_size(ni, ATTR_DATA, NULL, 0, &ni->file.run, new_size, in ntfs_truncate()
551 loff_t i_size, new_size; in ntfs_fallocate() local
582 new_size = max(end, i_size); in ntfs_fallocate()
671 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate()
702 loff_t to_alloc = new_size - inode_get_bytes(inode); in ntfs_fallocate()
712 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate()
716 if (new_size > i_size) { in ntfs_fallocate()
720 err = ntfs_set_size(inode, new_size); in ntfs_fallocate()
767 } else if (new_size > i_size) { in ntfs_fallocate()
768 i_size_write(inode, new_size); in ntfs_fallocate()