Home
last modified time | relevance | path

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

123

/linux-6.6.21/fs/sysv/
Dfile.c43 attr->ia_size != i_size_read(inode)) { in sysv_setattr()
44 error = inode_newsize_ok(inode, attr->ia_size); in sysv_setattr()
47 truncate_setsize(inode, attr->ia_size); in sysv_setattr()
/linux-6.6.21/fs/minix/
Dfile.c36 attr->ia_size != i_size_read(inode)) { in minix_setattr()
37 error = inode_newsize_ok(inode, attr->ia_size); in minix_setattr()
41 truncate_setsize(inode, attr->ia_size); in minix_setattr()
/linux-6.6.21/fs/jffs2/
Dfs.c115 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr()
123 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr()
126 ri->dsize = cpu_to_je32(iattr->ia_size - inode->i_size); in jffs2_do_setattr()
128 } else if (ivalid & ATTR_SIZE && !iattr->ia_size) { in jffs2_do_setattr()
160 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) in jffs2_do_setattr()
161 jffs2_truncate_fragtree (c, &f->fragtree, iattr->ia_size); in jffs2_do_setattr()
163 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr()
165 inode->i_size = iattr->ia_size; in jffs2_do_setattr()
185 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) { in jffs2_do_setattr()
186 truncate_setsize(inode, iattr->ia_size); in jffs2_do_setattr()
/linux-6.6.21/fs/jfs/
Dfile.c111 iattr->ia_size != i_size_read(inode)) { in jfs_setattr()
114 rc = inode_newsize_ok(inode, iattr->ia_size); in jfs_setattr()
118 truncate_setsize(inode, iattr->ia_size); in jfs_setattr()
/linux-6.6.21/fs/ecryptfs/
Dinode.c744 if (unlikely((ia->ia_size == i_size))) { in truncate_upper()
753 if (ia->ia_size > i_size) { in truncate_upper()
762 (ia->ia_size - 1), 1); in truncate_upper()
769 - (ia->ia_size & ~PAGE_MASK)); in truncate_upper()
772 truncate_setsize(inode, ia->ia_size); in truncate_upper()
773 lower_ia->ia_size = ia->ia_size; in truncate_upper()
786 ia->ia_size, num_zeros); in truncate_upper()
795 truncate_setsize(inode, ia->ia_size); in truncate_upper()
808 upper_size_to_lower_size(crypt_stat, ia->ia_size); in truncate_upper()
810 lower_ia->ia_size = lower_size_after_truncate; in truncate_upper()
[all …]
/linux-6.6.21/fs/xfs/
Dxfs_pnfs.c277 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
279 size = iattr->ia_size; in xfs_fs_commit_blocks()
327 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks()
328 ip->i_disk_size = iattr->ia_size; in xfs_fs_commit_blocks()
/linux-6.6.21/fs/afs/
Dinode.c859 loff_t size = op->setattr.attr->ia_size; in afs_setattr_success()
871 loff_t size = op->setattr.attr->ia_size; in afs_setattr_edit_file()
918 ret = inode_newsize_ok(inode, attr->ia_size); in afs_setattr()
922 if (attr->ia_size == i_size) in afs_setattr()
932 loff_t size = attr->ia_size; in afs_setattr()
945 attr->ia_size < i_size && in afs_setattr()
946 attr->ia_size > vnode->status.size) { in afs_setattr()
947 truncate_pagecache(inode, attr->ia_size); in afs_setattr()
949 attr->ia_size); in afs_setattr()
950 i_size_write(inode, attr->ia_size); in afs_setattr()
/linux-6.6.21/fs/exfat/
Dfile.c253 attr->ia_size > i_size_read(inode)) { in exfat_setattr()
254 error = exfat_cont_expand(inode, attr->ia_size); in exfat_setattr()
299 error = exfat_block_truncate_page(inode, attr->ia_size); in exfat_setattr()
304 truncate_setsize(inode, attr->ia_size); in exfat_setattr()
/linux-6.6.21/fs/fat/
Dfile.c512 if (attr->ia_size > inode->i_size) { in fat_setattr()
513 error = fat_cont_expand(inode, attr->ia_size); in fat_setattr()
546 error = fat_block_truncate_page(inode, attr->ia_size); in fat_setattr()
550 truncate_setsize(inode, attr->ia_size); in fat_setattr()
551 fat_truncate_blocks(inode, attr->ia_size); in fat_setattr()
/linux-6.6.21/fs/hpfs/
Dinode.c275 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
283 attr->ia_size != i_size_read(inode)) { in hpfs_setattr()
284 error = inode_newsize_ok(inode, attr->ia_size); in hpfs_setattr()
288 truncate_setsize(inode, attr->ia_size); in hpfs_setattr()
/linux-6.6.21/fs/ceph/
Dinode.c2295 int boff = attr->ia_size % CEPH_FSCRYPT_BLOCK_SIZE; in fill_fscrypt_truncate()
2296 loff_t pos, orig_pos = round_down(attr->ia_size, in fill_fscrypt_truncate()
2317 i_size, attr->ia_size, ceph_cap_string(got), in fill_fscrypt_truncate()
2576 dout("setattr %p size %lld -> %lld\n", inode, isize, attr->ia_size); in __ceph_setattr()
2581 if (IS_ENCRYPTED(inode) && attr->ia_size < isize && in __ceph_setattr()
2582 (attr->ia_size % CEPH_FSCRYPT_BLOCK_SIZE)) { in __ceph_setattr()
2589 cpu_to_le64(round_up(attr->ia_size, in __ceph_setattr()
2594 req->r_fscrypt_file = attr->ia_size; in __ceph_setattr()
2596 } else if ((issued & CEPH_CAP_FILE_EXCL) && attr->ia_size >= isize) { in __ceph_setattr()
2597 if (attr->ia_size > isize) { in __ceph_setattr()
[all …]
/linux-6.6.21/fs/ramfs/
Dfile-nommu.c177 if (ia->ia_size != size) { in ramfs_nommu_setattr()
178 ret = ramfs_nommu_resize(inode, ia->ia_size, size); in ramfs_nommu_setattr()
/linux-6.6.21/fs/omfs/
Dfile.c351 attr->ia_size != i_size_read(inode)) { in omfs_setattr()
352 error = inode_newsize_ok(inode, attr->ia_size); in omfs_setattr()
355 truncate_setsize(inode, attr->ia_size); in omfs_setattr()
/linux-6.6.21/fs/udf/
Dfile.c234 attr->ia_size != i_size_read(inode)) { in udf_setattr()
235 error = udf_setsize(inode, attr->ia_size); in udf_setattr()
/linux-6.6.21/fs/9p/
Dvfs_inode_dotl.c563 p9attr.size = iattr->ia_size; in v9fs_vfs_setattr_dotl()
599 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size != in v9fs_vfs_setattr_dotl()
601 truncate_setsize(inode, iattr->ia_size); in v9fs_vfs_setattr_dotl()
602 truncate_pagecache(inode, iattr->ia_size); in v9fs_vfs_setattr_dotl()
607 iattr->ia_size); in v9fs_vfs_setattr_dotl()
Dvfs_inode.c1087 wstat.length = iattr->ia_size; in v9fs_vfs_setattr()
1114 iattr->ia_size != i_size_read(inode)) { in v9fs_vfs_setattr()
1115 truncate_setsize(inode, iattr->ia_size); in v9fs_vfs_setattr()
1116 truncate_pagecache(inode, iattr->ia_size); in v9fs_vfs_setattr()
1122 fscache_resize_cookie(v9fs_inode_cookie(v9inode), iattr->ia_size); in v9fs_vfs_setattr()
/linux-6.6.21/fs/affs/
Dinode.c244 attr->ia_size != i_size_read(inode)) { in affs_notify_change()
245 error = inode_newsize_ok(inode, attr->ia_size); in affs_notify_change()
249 truncate_setsize(inode, attr->ia_size); in affs_notify_change()
/linux-6.6.21/fs/orangefs/
Dinode.c720 iattr->ia_size); in orangefs_setattr_size()
734 truncate_pagecache(inode, iattr->ia_size); in orangefs_setattr_size()
735 i_size_write(inode, iattr->ia_size); in orangefs_setattr_size()
736 if (iattr->ia_size > orig_size) in orangefs_setattr_size()
737 pagecache_isize_extended(inode, orig_size, iattr->ia_size); in orangefs_setattr_size()
744 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
/linux-6.6.21/fs/hostfs/
Dhostfs.h50 loff_t ia_size; member
Dhostfs_user.c227 if (ftruncate(fd, attrs->ia_size)) in set_attr()
229 } else if (truncate(file, attrs->ia_size)) { in set_attr()
Dhostfs_kern.c833 attrs.ia_size = attr->ia_size; in hostfs_setattr()
865 attr->ia_size != i_size_read(inode)) in hostfs_setattr()
866 truncate_setsize(inode, attr->ia_size); in hostfs_setattr()
/linux-6.6.21/fs/hfsplus/
Dinode.c260 attr->ia_size != i_size_read(inode)) { in hfsplus_setattr()
262 if (attr->ia_size > inode->i_size) { in hfsplus_setattr()
264 attr->ia_size); in hfsplus_setattr()
268 truncate_setsize(inode, attr->ia_size); in hfsplus_setattr()
/linux-6.6.21/fs/cachefiles/
Dinterface.c138 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_adjust_size()
148 newattrs.ia_size = ni_size; in cachefiles_adjust_size()
/linux-6.6.21/fs/smb/client/
Dinode.c2795 attrs->ia_size, false);
2821 attrs->ia_size, cifs_sb, false);
2831 cifsInode->server_eof = attrs->ia_size;
2832 cifs_setsize(inode, attrs->ia_size);
2840 inode->i_blocks = (512 - 1 + attrs->ia_size) >> 9;
2982 attrs->ia_size != i_size_read(inode)) {
2983 truncate_setsize(inode, attrs->ia_size);
2984 fscache_resize_cookie(cifs_inode_cookie(inode), attrs->ia_size);
3181 attrs->ia_size != i_size_read(inode)) {
3182 truncate_setsize(inode, attrs->ia_size);
[all …]
/linux-6.6.21/fs/coda/
Dcoda_linux.c194 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()

123