/fs/ntfs/ |
D | runlist.c | 61 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 …]
|
D | inode.c | 2357 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() 2826 old_size = -1; in ntfs_truncate() 2832 else if (old_size >= 0) in ntfs_truncate() 2833 i_size_write(vi, old_size); in ntfs_truncate() [all …]
|
D | attrib.c | 1492 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/ |
D | attrlist.c | 295 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()
|
D | attrib.c | 413 u64 old_valid, old_size, old_alloc, new_alloc, new_alloc_tmp; in attr_set_size() local 456 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() 507 if (new_size > old_size) { in attr_set_size() 687 old_valid = old_size = old_alloc = (u64)vcn << cluster_bits; in attr_set_size() 689 attr_b->nres.alloc_size = cpu_to_le64(old_size); in attr_set_size() 694 if (new_size != old_size || in attr_set_size() 770 old_size = new_alloc_tmp; in attr_set_size() 835 attr_b->nres.data_size = cpu_to_le64(old_size); in attr_set_size()
|
/fs/ubifs/ |
D | replay.c | 57 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()
|
D | xattr.c | 197 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()
|
D | journal.c | 1552 loff_t old_size, loff_t new_size) in ubifs_jnl_truncate() argument 1567 (unsigned long)inum, old_size, new_size); in ubifs_jnl_truncate() 1587 trun->old_size = cpu_to_le64(old_size); in ubifs_jnl_truncate() 1678 bit = old_size & (UBIFS_BLOCK_SIZE - 1); in ubifs_jnl_truncate() 1679 blk = (old_size >> UBIFS_BLOCK_SHIFT) - (bit ? 0 : 1); in ubifs_jnl_truncate()
|
D | file.c | 1115 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local 1119 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation() 1193 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation()
|
D | ubifs-media.h | 602 __le64 old_size; member
|
D | ubifs.h | 1821 loff_t old_size, loff_t new_size);
|
/fs/cachefiles/ |
D | interface.c | 286 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie() local 288 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie() 290 if (new_size < old_size) { in cachefiles_resize_cookie()
|
/fs/gfs2/ |
D | lock_dlm.c | 1077 uint32_t old_size, new_size; in set_recover_size() local 1092 old_size = ls->ls_recover_size; in set_recover_size() 1093 new_size = old_size; in set_recover_size() 1096 if (new_size == old_size) in set_recover_size() 1108 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size() 1109 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
|
/fs/ext4/ |
D | inline.c | 1062 static void ext4_update_final_de(void *de_buf, int old_size, int new_size) in ext4_update_final_de() argument 1069 if (old_size) { in ext4_update_final_de() 1070 limit = de_buf + old_size; in ext4_update_final_de() 1073 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de() 1079 old_size, new_size); in ext4_update_final_de() 1091 int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; in ext4_update_inline_dir() local 1094 if (new_size - old_size <= ext4_dir_rec_len(1, NULL)) in ext4_update_inline_dir() 1102 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
|
D | xattr.c | 1636 size_t old_size, new_size; in ext4_xattr_set_entry() local 1640 old_size = (!s->not_found && !here->e_value_inum) ? in ext4_xattr_set_entry() 1648 if (new_size && new_size == old_size) { in ext4_xattr_set_entry() 1685 free += EXT4_XATTR_LEN(name_len) + old_size; in ext4_xattr_set_entry() 1700 (min_offs + old_size - new_size) < in ext4_xattr_set_entry() 1738 memmove(first_val + old_size, first_val, val - first_val); in ext4_xattr_set_entry() 1739 memset(first_val, 0, old_size); in ext4_xattr_set_entry() 1740 min_offs += old_size; in ext4_xattr_set_entry() 1749 last->e_value_offs = cpu_to_le16(o + old_size); in ext4_xattr_set_entry()
|
D | inode.c | 1306 loff_t old_size = inode->i_size; in ext4_write_end() local 1331 if (old_size < pos && !verity) in ext4_write_end() 1332 pagecache_isize_extended(inode, old_size, pos); in ext4_write_end() 1410 loff_t old_size = inode->i_size; in ext4_journalled_write_end() local 1448 if (old_size < pos && !verity) in ext4_journalled_write_end() 1449 pagecache_isize_extended(inode, old_size, pos); in ext4_journalled_write_end() 2972 loff_t old_size = inode->i_size; in ext4_da_do_write_end() local 3018 if (old_size < pos) in ext4_da_do_write_end() 3019 pagecache_isize_extended(inode, old_size, pos); in ext4_da_do_write_end()
|
/fs/btrfs/ |
D | inode-item.c | 334 u32 old_size; in btrfs_insert_inode_ref() local 340 old_size = btrfs_item_size(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref() 344 ref = (struct btrfs_inode_ref *)((unsigned long)ref + old_size); in btrfs_insert_inode_ref()
|
D | ioctl.c | 1121 u64 old_size; in btrfs_ioctl_resize() local 1212 old_size = btrfs_device_get_total_bytes(device); in btrfs_ioctl_resize() 1215 if (new_size > old_size) { in btrfs_ioctl_resize() 1219 new_size = old_size - new_size; in btrfs_ioctl_resize() 1221 if (new_size > ULLONG_MAX - old_size) { in btrfs_ioctl_resize() 1225 new_size = old_size + new_size; in btrfs_ioctl_resize() 1239 if (new_size > old_size) { in btrfs_ioctl_resize() 1247 } else if (new_size < old_size) { in btrfs_ioctl_resize() 1251 if (ret == 0 && new_size != old_size) in btrfs_ioctl_resize() 1255 old_size, new_size); in btrfs_ioctl_resize()
|
D | ctree.c | 4141 unsigned int old_size; in btrfs_truncate_item() local 4149 old_size = btrfs_item_size(leaf, slot); in btrfs_truncate_item() 4150 if (old_size == new_size) in btrfs_truncate_item() 4158 size_diff = old_size - new_size; in btrfs_truncate_item() 4233 unsigned int old_size; in btrfs_extend_item() local 4274 old_size = btrfs_item_size(leaf, slot); in btrfs_extend_item() 4275 btrfs_set_item_size(leaf, slot, old_size + data_size); in btrfs_extend_item()
|
D | send.c | 6721 u64 old_size; in finish_inode_if_needed() local 6726 old_size = info.size; in finish_inode_if_needed() 6738 if ((old_size == sctx->cur_inode_size) || in finish_inode_if_needed() 6739 (sctx->cur_inode_size > old_size && in finish_inode_if_needed()
|
D | inode.c | 2330 u64 new_size, old_size; in btrfs_merge_delalloc_extent() local 2368 old_size = other->end - other->start + 1; in btrfs_merge_delalloc_extent() 2369 num_extents = count_max_extents(fs_info, old_size); in btrfs_merge_delalloc_extent() 2370 old_size = new->end - new->start + 1; in btrfs_merge_delalloc_extent() 2371 num_extents += count_max_extents(fs_info, old_size); in btrfs_merge_delalloc_extent()
|
/fs/iomap/ |
D | buffered-io.c | 839 loff_t old_size = iter->inode->i_size; in iomap_write_end() local 856 if (pos + ret > old_size) { in iomap_write_end() 862 if (old_size < pos) in iomap_write_end() 863 pagecache_isize_extended(iter->inode, old_size, pos); in iomap_write_end()
|
/fs/ |
D | buffer.c | 2283 loff_t old_size = inode->i_size; in generic_write_end() local 2303 if (old_size < pos) in generic_write_end() 2304 pagecache_isize_extended(inode, old_size, pos); in generic_write_end()
|
/fs/ceph/ |
D | inode.c | 2593 req->r_args.setattr.old_size = in __ceph_setattr() 2617 req->r_args.setattr.old_size = in __ceph_setattr() 2623 req->r_args.setattr.old_size = cpu_to_le64(isize); in __ceph_setattr()
|
/fs/ocfs2/ |
D | dir.c | 2724 static unsigned int ocfs2_expand_last_dirent(char *start, unsigned int old_size, in ocfs2_expand_last_dirent() argument 2738 bytes = new_size - old_size; in ocfs2_expand_last_dirent() 2740 limit = start + old_size; in ocfs2_expand_last_dirent()
|