Home
last modified time | relevance | path

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

/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.c2333 s64 new_size, old_size, nr_freed, new_alloc_size, old_alloc_size; in ntfs_truncate() local
2398 old_size = ntfs_attr_size(a); in ntfs_truncate()
2414 if (new_size - old_size >= 0) { in ntfs_truncate()
2416 if (new_size == old_size) in ntfs_truncate()
2442 new_size > old_size ? "exceed " in ntfs_truncate()
2455 i_size_write(vi, old_size); in ntfs_truncate()
2530 err = ntfs_attr_make_non_resident(ni, old_size); in ntfs_truncate()
2803 old_size = -1; in ntfs_truncate()
2809 else if (old_size >= 0) in ntfs_truncate()
2810 i_size_write(vi, old_size); in ntfs_truncate()
[all …]
Dattrib.c1468 u32 old_size; in ntfs_resident_attr_value_resize() local
1478 old_size = le32_to_cpu(a->data.resident.value_length); in ntfs_resident_attr_value_resize()
1479 if (new_size > old_size) in ntfs_resident_attr_value_resize()
1481 old_size, 0, new_size - old_size); in ntfs_resident_attr_value_resize()
/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()
385 loff_t old_size, loff_t new_size) in insert_node() argument
407 r->old_size = old_size; in insert_node()
794 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local
799 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud()
801 old_size <= new_size) { in replay_bud()
813 old_size, new_size); in replay_bud()
Dxattr.c197 int old_size; in change_xattr() local
215 old_size = ui->data_len; in change_xattr()
221 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr()
240 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
Djournal.c1504 loff_t old_size, loff_t new_size) in ubifs_jnl_truncate() argument
1518 (unsigned long)inum, old_size, new_size); in ubifs_jnl_truncate()
1535 trun->old_size = cpu_to_le64(old_size); in ubifs_jnl_truncate()
1625 bit = old_size & (UBIFS_BLOCK_SIZE - 1); in ubifs_jnl_truncate()
1626 blk = (old_size >> UBIFS_BLOCK_SHIFT) - (bit ? 0 : 1); in ubifs_jnl_truncate()
Dfile.c1117 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local
1121 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation()
1195 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation()
Dubifs-media.h602 __le64 old_size; member
Dubifs.h1784 loff_t old_size, loff_t new_size);
Ddebug.c490 (unsigned long long)le64_to_cpu(trun->old_size)); in ubifs_dump_node()
/fs/btrfs/
Dinode-item.c335 u32 old_size; in btrfs_insert_inode_ref() local
341 old_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref()
345 ref = (struct btrfs_inode_ref *)((unsigned long)ref + old_size); in btrfs_insert_inode_ref()
Dioctl.c1602 u64 old_size; in btrfs_ioctl_resize() local
1688 old_size = btrfs_device_get_total_bytes(device); in btrfs_ioctl_resize()
1691 if (new_size > old_size) { in btrfs_ioctl_resize()
1695 new_size = old_size - new_size; in btrfs_ioctl_resize()
1697 if (new_size > ULLONG_MAX - old_size) { in btrfs_ioctl_resize()
1701 new_size = old_size + new_size; in btrfs_ioctl_resize()
1718 if (new_size > old_size) { in btrfs_ioctl_resize()
1726 } else if (new_size < old_size) { in btrfs_ioctl_resize()
Dctree.c4592 unsigned int old_size; in btrfs_truncate_item() local
4600 old_size = btrfs_item_size_nr(leaf, slot); in btrfs_truncate_item()
4601 if (old_size == new_size) in btrfs_truncate_item()
4609 size_diff = old_size - new_size; in btrfs_truncate_item()
4689 unsigned int old_size; in btrfs_extend_item() local
4733 old_size = btrfs_item_size_nr(leaf, slot); in btrfs_extend_item()
4735 btrfs_set_item_size(leaf, item, old_size + data_size); in btrfs_extend_item()
Dsend.c5948 u64 old_size; in finish_inode_if_needed() local
5951 &old_size, NULL, &right_mode, &right_uid, in finish_inode_if_needed()
5960 if ((old_size == sctx->cur_inode_size) || in finish_inode_if_needed()
5961 (sctx->cur_inode_size > old_size && in finish_inode_if_needed()
Dinode.c1779 u64 new_size, old_size; in btrfs_merge_delalloc_extent() local
1817 old_size = other->end - other->start + 1; in btrfs_merge_delalloc_extent()
1818 num_extents = count_max_extents(old_size); in btrfs_merge_delalloc_extent()
1819 old_size = new->end - new->start + 1; in btrfs_merge_delalloc_extent()
1820 num_extents += count_max_extents(old_size); in btrfs_merge_delalloc_extent()
Dvolumes.c4687 u64 old_size = btrfs_device_get_total_bytes(device); in btrfs_shrink_device() local
4693 diff = round_down(old_size - new_size, fs_info->sectorsize); in btrfs_shrink_device()
4844 btrfs_device_set_total_bytes(device, old_size); in btrfs_shrink_device()
/fs/gfs2/
Dlock_dlm.c1022 uint32_t old_size, new_size; in set_recover_size() local
1037 old_size = ls->ls_recover_size; in set_recover_size()
1038 new_size = old_size; in set_recover_size()
1041 if (new_size == old_size) in set_recover_size()
1053 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size()
1054 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
/fs/ext4/
Dinline.c1085 static void ext4_update_final_de(void *de_buf, int old_size, int new_size) in ext4_update_final_de() argument
1092 if (old_size) { in ext4_update_final_de()
1093 limit = de_buf + old_size; in ext4_update_final_de()
1096 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de()
1102 old_size, new_size); in ext4_update_final_de()
1114 int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; in ext4_update_inline_dir() local
1117 if (new_size - old_size <= EXT4_DIR_REC_LEN(1)) in ext4_update_inline_dir()
1125 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
Dxattr.c1571 size_t old_size, new_size; in ext4_xattr_set_entry() local
1575 old_size = (!s->not_found && !here->e_value_inum) ? in ext4_xattr_set_entry()
1583 if (new_size && new_size == old_size) { in ext4_xattr_set_entry()
1620 free += EXT4_XATTR_LEN(name_len) + old_size; in ext4_xattr_set_entry()
1635 (min_offs + old_size - new_size) < in ext4_xattr_set_entry()
1705 memmove(first_val + old_size, first_val, val - first_val); in ext4_xattr_set_entry()
1706 memset(first_val, 0, old_size); in ext4_xattr_set_entry()
1707 min_offs += old_size; in ext4_xattr_set_entry()
1716 last->e_value_offs = cpu_to_le16(o + old_size); in ext4_xattr_set_entry()
Dinode.c1428 loff_t old_size = inode->i_size; in ext4_write_end() local
1460 if (old_size < pos && !verity) in ext4_write_end()
1461 pagecache_isize_extended(inode, old_size, pos); in ext4_write_end()
1537 loff_t old_size = inode->i_size; in ext4_journalled_write_end() local
1581 if (old_size < pos && !verity) in ext4_journalled_write_end()
1582 pagecache_isize_extended(inode, old_size, pos); in ext4_journalled_write_end()
/fs/iomap/
Dbuffered-io.c703 loff_t old_size = inode->i_size; in iomap_write_end() local
720 if (pos + ret > old_size) { in iomap_write_end()
726 if (old_size < pos) in iomap_write_end()
727 pagecache_isize_extended(inode, old_size, pos); in iomap_write_end()
/fs/
Dbuffer.c2131 loff_t old_size = inode->i_size; in generic_write_end() local
2151 if (old_size < pos) in generic_write_end()
2152 pagecache_isize_extended(inode, old_size, pos); in generic_write_end()
/fs/ocfs2/
Ddir.c2716 static unsigned int ocfs2_expand_last_dirent(char *start, unsigned int old_size, in ocfs2_expand_last_dirent() argument
2730 bytes = new_size - old_size; in ocfs2_expand_last_dirent()
2732 limit = start + old_size; in ocfs2_expand_last_dirent()
/fs/f2fs/
Dfile.c831 loff_t old_size = i_size_read(inode); in f2fs_setattr() local
848 if (attr->ia_size <= old_size) in f2fs_setattr()
/fs/ceph/
Dinode.c2111 req->r_args.setattr.old_size = in __ceph_setattr()