Lines Matching refs:new_init_size
109 static int ntfs_attr_extend_initialized(ntfs_inode *ni, const s64 new_init_size) in ntfs_attr_extend_initialized() argument
129 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized()
136 (unsigned long long)new_init_size, old_i_size); in ntfs_attr_extend_initialized()
174 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized()
175 a->data.resident.value_length = cpu_to_le32((u32)new_init_size); in ntfs_attr_extend_initialized()
178 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized()
179 ni->initialized_size = new_init_size; in ntfs_attr_extend_initialized()
188 if (new_init_size > old_i_size) { in ntfs_attr_extend_initialized()
212 a->data.non_resident.data_size = cpu_to_sle64(new_init_size); in ntfs_attr_extend_initialized()
216 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized()
224 end_index = (new_init_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ntfs_attr_extend_initialized()
246 if (ni->initialized_size > new_init_size) in ntfs_attr_extend_initialized()
247 ni->initialized_size = new_init_size; in ntfs_attr_extend_initialized()
283 BUG_ON(ni->initialized_size != new_init_size); in ntfs_attr_extend_initialized()
307 a->data.non_resident.initialized_size = cpu_to_sle64(new_init_size); in ntfs_attr_extend_initialized()
316 (unsigned long long)new_init_size, i_size_read(vi)); in ntfs_attr_extend_initialized()