Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 25 of 27) sorted by relevance

12

/fs/ntfs/
Drunlist.c61 int old_size, int new_size) in ntfs_rl_realloc() argument
65 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc()
67 if (old_size == new_size) in ntfs_rl_realloc()
75 if (unlikely(old_size > new_size)) in ntfs_rl_realloc()
76 old_size = new_size; in ntfs_rl_realloc()
77 memcpy(new_rl, rl, old_size); in ntfs_rl_realloc()
107 int old_size, int new_size) in ntfs_rl_realloc_nofail() argument
111 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc_nofail()
113 if (old_size == new_size) in ntfs_rl_realloc_nofail()
120 if (unlikely(old_size > new_size)) in ntfs_rl_realloc_nofail()
[all …]
Dinode.c2357 s64 new_size, old_size, nr_freed, new_alloc_size, old_alloc_size; in ntfs_truncate() local
2421 old_size = ntfs_attr_size(a); in ntfs_truncate()
2437 if (new_size - old_size >= 0) { in ntfs_truncate()
2439 if (new_size == old_size) in ntfs_truncate()
2465 new_size > old_size ? "exceed " in ntfs_truncate()
2478 i_size_write(vi, old_size); in ntfs_truncate()
2553 err = ntfs_attr_make_non_resident(ni, old_size); in ntfs_truncate()
2825 old_size = -1; in ntfs_truncate()
2831 else if (old_size >= 0) in ntfs_truncate()
2832 i_size_write(vi, old_size); in ntfs_truncate()
[all …]
Dattrib.c1492 u32 old_size; in ntfs_resident_attr_value_resize() local
1502 old_size = le32_to_cpu(a->data.resident.value_length); in ntfs_resident_attr_value_resize()
1503 if (new_size > old_size) in ntfs_resident_attr_value_resize()
1505 old_size, 0, new_size - old_size); in ntfs_resident_attr_value_resize()
/fs/ntfs3/
Dattrlist.c295 size_t asize, new_asize, old_size; in al_add_le() local
303 old_size = al->size; in al_add_le()
304 new_size = old_size + sz; in al_add_le()
305 asize = al_aligned(old_size); in al_add_le()
319 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le()
324 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le()
343 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le()
344 al->size = old_size; in al_add_le()
Dattrib.c420 u64 old_valid, old_size, old_alloc, new_alloc, new_alloc_tmp; in attr_set_size() local
458 old_size = le64_to_cpu(attr_b->nres.data_size); in attr_set_size()
465 if (keep_prealloc && new_size < old_size) { in attr_set_size()
504 if (new_size > old_size) { in attr_set_size()
673 if (new_size != old_size || in attr_set_size()
740 old_size = new_alloc_tmp; in attr_set_size()
/fs/ubifs/
Dreplay.c57 loff_t old_size; member
191 max_blk = r->old_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
192 if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0) in trun_remove_range()
386 loff_t old_size, loff_t new_size) in insert_node() argument
408 r->old_size = old_size; in insert_node()
780 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local
785 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud()
787 old_size <= new_size) { in replay_bud()
799 old_size, new_size); in replay_bud()
Dxattr.c197 int old_size; in change_xattr() local
214 old_size = ui->data_len; in change_xattr()
219 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr()
238 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
Djournal.c1546 loff_t old_size, loff_t new_size) in ubifs_jnl_truncate() argument
1560 (unsigned long)inum, old_size, new_size); in ubifs_jnl_truncate()
1577 trun->old_size = cpu_to_le64(old_size); in ubifs_jnl_truncate()
1668 bit = old_size & (UBIFS_BLOCK_SIZE - 1); in ubifs_jnl_truncate()
1669 blk = (old_size >> UBIFS_BLOCK_SHIFT) - (bit ? 0 : 1); in ubifs_jnl_truncate()
Dfile.c1119 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local
1123 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation()
1197 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation()
Dubifs-media.h602 __le64 old_size; member
Dubifs.h1792 loff_t old_size, loff_t new_size);
/fs/btrfs/
Dinode-item.c329 u32 old_size; in btrfs_insert_inode_ref() local
335 old_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref()
339 ref = (struct btrfs_inode_ref *)((unsigned long)ref + old_size); in btrfs_insert_inode_ref()
Dioctl.c1667 u64 old_size; in btrfs_ioctl_resize() local
1758 old_size = btrfs_device_get_total_bytes(device); in btrfs_ioctl_resize()
1761 if (new_size > old_size) { in btrfs_ioctl_resize()
1765 new_size = old_size - new_size; in btrfs_ioctl_resize()
1767 if (new_size > ULLONG_MAX - old_size) { in btrfs_ioctl_resize()
1771 new_size = old_size + new_size; in btrfs_ioctl_resize()
1785 if (new_size > old_size) { in btrfs_ioctl_resize()
1793 } else if (new_size < old_size) { in btrfs_ioctl_resize()
1797 if (ret == 0 && new_size != old_size) in btrfs_ioctl_resize()
1801 old_size, new_size); in btrfs_ioctl_resize()
Dctree.c3725 unsigned int old_size; in btrfs_truncate_item() local
3733 old_size = btrfs_item_size_nr(leaf, slot); in btrfs_truncate_item()
3734 if (old_size == new_size) in btrfs_truncate_item()
3742 size_diff = old_size - new_size; in btrfs_truncate_item()
3821 unsigned int old_size; in btrfs_extend_item() local
3864 old_size = btrfs_item_size_nr(leaf, slot); in btrfs_extend_item()
3866 btrfs_set_item_size(leaf, item, old_size + data_size); in btrfs_extend_item()
Dsend.c6137 u64 old_size; in finish_inode_if_needed() local
6140 &old_size, NULL, &right_mode, &right_uid, in finish_inode_if_needed()
6149 if ((old_size == sctx->cur_inode_size) || in finish_inode_if_needed()
6150 (sctx->cur_inode_size > old_size && in finish_inode_if_needed()
Dinode.c2073 u64 new_size, old_size; in btrfs_merge_delalloc_extent() local
2111 old_size = other->end - other->start + 1; in btrfs_merge_delalloc_extent()
2112 num_extents = count_max_extents(fs_info, old_size); in btrfs_merge_delalloc_extent()
2113 old_size = new->end - new->start + 1; in btrfs_merge_delalloc_extent()
2114 num_extents += count_max_extents(fs_info, old_size); in btrfs_merge_delalloc_extent()
Dvolumes.c4853 u64 old_size = btrfs_device_get_total_bytes(device); in btrfs_shrink_device() local
4859 diff = round_down(old_size - new_size, fs_info->sectorsize); in btrfs_shrink_device()
5015 btrfs_device_set_total_bytes(device, old_size); in btrfs_shrink_device()
/fs/gfs2/
Dlock_dlm.c1060 uint32_t old_size, new_size; in set_recover_size() local
1075 old_size = ls->ls_recover_size; in set_recover_size()
1076 new_size = old_size; in set_recover_size()
1079 if (new_size == old_size) in set_recover_size()
1091 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size()
1092 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
/fs/ext4/
Dinline.c1111 static void ext4_update_final_de(void *de_buf, int old_size, int new_size) in ext4_update_final_de() argument
1118 if (old_size) { in ext4_update_final_de()
1119 limit = de_buf + old_size; in ext4_update_final_de()
1122 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de()
1128 old_size, new_size); in ext4_update_final_de()
1140 int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; in ext4_update_inline_dir() local
1143 if (new_size - old_size <= ext4_dir_rec_len(1, NULL)) in ext4_update_inline_dir()
1151 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
Dxattr.c1577 size_t old_size, new_size; in ext4_xattr_set_entry() local
1581 old_size = (!s->not_found && !here->e_value_inum) ? in ext4_xattr_set_entry()
1589 if (new_size && new_size == old_size) { in ext4_xattr_set_entry()
1626 free += EXT4_XATTR_LEN(name_len) + old_size; in ext4_xattr_set_entry()
1641 (min_offs + old_size - new_size) < in ext4_xattr_set_entry()
1711 memmove(first_val + old_size, first_val, val - first_val); in ext4_xattr_set_entry()
1712 memset(first_val, 0, old_size); in ext4_xattr_set_entry()
1713 min_offs += old_size; in ext4_xattr_set_entry()
1722 last->e_value_offs = cpu_to_le16(o + old_size); in ext4_xattr_set_entry()
Dinode.c1301 loff_t old_size = inode->i_size; in ext4_write_end() local
1326 if (old_size < pos && !verity) in ext4_write_end()
1327 pagecache_isize_extended(inode, old_size, pos); in ext4_write_end()
1404 loff_t old_size = inode->i_size; in ext4_journalled_write_end() local
1441 if (old_size < pos && !verity) in ext4_journalled_write_end()
1442 pagecache_isize_extended(inode, old_size, pos); in ext4_journalled_write_end()
/fs/iomap/
Dbuffered-io.c701 loff_t old_size = iter->inode->i_size; in iomap_write_end() local
718 if (pos + ret > old_size) { in iomap_write_end()
724 if (old_size < pos) in iomap_write_end()
725 pagecache_isize_extended(iter->inode, old_size, pos); in iomap_write_end()
/fs/
Dbuffer.c2175 loff_t old_size = inode->i_size; in generic_write_end() local
2195 if (old_size < pos) in generic_write_end()
2196 pagecache_isize_extended(inode, old_size, pos); in generic_write_end()
/fs/ocfs2/
Ddir.c2714 static unsigned int ocfs2_expand_last_dirent(char *start, unsigned int old_size, in ocfs2_expand_last_dirent() argument
2728 bytes = new_size - old_size; in ocfs2_expand_last_dirent()
2730 limit = start + old_size; in ocfs2_expand_last_dirent()
/fs/f2fs/
Dfile.c951 loff_t old_size = i_size_read(inode); in f2fs_setattr() local
968 if (attr->ia_size <= old_size) in f2fs_setattr()

12