Lines Matching refs:newsize
617 static int udf_extend_file(struct inode *inode, loff_t newsize) in udf_extend_file() argument
625 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; in udf_extend_file()
667 (newsize & (sb->s_blocksize - 1)); in udf_extend_file()
682 iinfo->i_lenExtents = newsize; in udf_extend_file()
1219 int udf_setsize(struct inode *inode, loff_t newsize) in udf_setsize() argument
1232 if (newsize > inode->i_size) { in udf_setsize()
1236 (udf_file_entry_alloc_offset(inode) + newsize)) { in udf_setsize()
1242 iinfo->i_lenAlloc = newsize; in udf_setsize()
1246 err = udf_extend_file(inode, newsize); in udf_setsize()
1253 truncate_setsize(inode, newsize); in udf_setsize()
1258 memset(iinfo->i_data + iinfo->i_lenEAttr + newsize, in udf_setsize()
1259 0x00, bsize - newsize - in udf_setsize()
1261 iinfo->i_lenAlloc = newsize; in udf_setsize()
1262 truncate_setsize(inode, newsize); in udf_setsize()
1266 err = block_truncate_page(inode->i_mapping, newsize, in udf_setsize()
1270 truncate_setsize(inode, newsize); in udf_setsize()