Lines Matching refs:new_size
228 struct file *file, loff_t new_size) in cachefiles_shorten_object() argument
235 dio_size = round_up(new_size, CACHEFILES_DIO_BLOCK_SIZE); in cachefiles_shorten_object()
251 if (new_size < dio_size) { in cachefiles_shorten_object()
252 trace_cachefiles_trunc(object, inode, dio_size, new_size, in cachefiles_shorten_object()
257 new_size, dio_size - new_size); in cachefiles_shorten_object()
274 loff_t new_size) in cachefiles_resize_cookie() argument
283 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie()
285 if (new_size < old_size) { in cachefiles_resize_cookie()
287 cachefiles_shorten_object(object, file, new_size); in cachefiles_resize_cookie()
289 object->cookie->object_size = new_size; in cachefiles_resize_cookie()
297 cookie->object_size = new_size; in cachefiles_resize_cookie()