Lines Matching refs:newsize
627 static int udf_extend_file(struct inode *inode, loff_t newsize) in udf_extend_file() argument
635 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; in udf_extend_file()
667 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()
1245 (udf_file_entry_alloc_offset(inode) + newsize)) { 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()
1267 memset(iinfo->i_data + iinfo->i_lenEAttr + 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()
1275 err = block_truncate_page(inode->i_mapping, newsize, in udf_setsize()
1279 truncate_setsize(inode, newsize); in udf_setsize()