Home
last modified time | relevance | path

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

123

/linux-6.1.9/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.1.9/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.1.9/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.1.9/fs/ecryptfs/
Dinode.c734 if (unlikely((ia->ia_size == i_size))) { in truncate_upper()
743 if (ia->ia_size > i_size) { in truncate_upper()
752 (ia->ia_size - 1), 1); in truncate_upper()
759 - (ia->ia_size & ~PAGE_MASK)); in truncate_upper()
762 truncate_setsize(inode, ia->ia_size); in truncate_upper()
763 lower_ia->ia_size = ia->ia_size; in truncate_upper()
776 ia->ia_size, num_zeros); in truncate_upper()
785 truncate_setsize(inode, ia->ia_size); in truncate_upper()
798 upper_size_to_lower_size(crypt_stat, ia->ia_size); in truncate_upper()
800 lower_ia->ia_size = lower_size_after_truncate; in truncate_upper()
[all …]
/linux-6.1.9/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.1.9/fs/exfat/
Dfile.c256 attr->ia_size > i_size_read(inode)) { in exfat_setattr()
257 error = exfat_cont_expand(inode, attr->ia_size); in exfat_setattr()
302 error = exfat_block_truncate_page(inode, attr->ia_size); in exfat_setattr()
307 truncate_setsize(inode, attr->ia_size); in exfat_setattr()
313 exfat_truncate(inode, attr->ia_size); in exfat_setattr()
/linux-6.1.9/fs/xfs/
Dxfs_pnfs.c275 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
277 size = iattr->ia_size; in xfs_fs_commit_blocks()
325 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks()
326 ip->i_disk_size = iattr->ia_size; in xfs_fs_commit_blocks()
/linux-6.1.9/fs/afs/
Dinode.c840 loff_t size = op->setattr.attr->ia_size; in afs_setattr_success()
852 loff_t size = op->setattr.attr->ia_size; in afs_setattr_edit_file()
899 ret = inode_newsize_ok(inode, attr->ia_size); in afs_setattr()
903 if (attr->ia_size == i_size) in afs_setattr()
913 loff_t size = attr->ia_size; in afs_setattr()
926 attr->ia_size < i_size && in afs_setattr()
927 attr->ia_size > vnode->status.size) { in afs_setattr()
928 truncate_pagecache(inode, attr->ia_size); in afs_setattr()
930 attr->ia_size); in afs_setattr()
931 i_size_write(inode, attr->ia_size); in afs_setattr()
/linux-6.1.9/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.1.9/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.1.9/fs/omfs/
Dfile.c356 attr->ia_size != i_size_read(inode)) { in omfs_setattr()
357 error = inode_newsize_ok(inode, attr->ia_size); in omfs_setattr()
360 truncate_setsize(inode, attr->ia_size); in omfs_setattr()
/linux-6.1.9/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.1.9/fs/udf/
Dfile.c280 attr->ia_size != i_size_read(inode)) { in udf_setattr()
281 error = udf_setsize(inode, attr->ia_size); in udf_setattr()
/linux-6.1.9/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.1.9/fs/orangefs/
Dinode.c730 iattr->ia_size); in orangefs_setattr_size()
744 truncate_pagecache(inode, iattr->ia_size); in orangefs_setattr_size()
745 i_size_write(inode, iattr->ia_size); in orangefs_setattr_size()
746 if (iattr->ia_size > orig_size) in orangefs_setattr_size()
747 pagecache_isize_extended(inode, orig_size, iattr->ia_size); in orangefs_setattr_size()
754 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
/linux-6.1.9/fs/hostfs/
Dhostfs.h50 loff_t ia_size; member
Dhostfs_user.c226 if (ftruncate(fd, attrs->ia_size)) in set_attr()
228 } else if (truncate(file, attrs->ia_size)) { in set_attr()
Dhostfs_kern.c825 attrs.ia_size = attr->ia_size; in hostfs_setattr()
857 attr->ia_size != i_size_read(inode)) in hostfs_setattr()
858 truncate_setsize(inode, attr->ia_size); in hostfs_setattr()
/linux-6.1.9/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.1.9/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.1.9/fs/ceph/
Dinode.c2123 dout("setattr %p size %lld -> %lld\n", inode, isize, attr->ia_size); in __ceph_setattr()
2124 if ((issued & CEPH_CAP_FILE_EXCL) && attr->ia_size >= isize) { in __ceph_setattr()
2125 if (attr->ia_size > isize) { in __ceph_setattr()
2126 i_size_write(inode, attr->ia_size); in __ceph_setattr()
2127 inode->i_blocks = calc_inode_blocks(attr->ia_size); in __ceph_setattr()
2128 ci->i_reported_size = attr->ia_size; in __ceph_setattr()
2133 attr->ia_size != isize) { in __ceph_setattr()
2134 req->r_args.setattr.size = cpu_to_le64(attr->ia_size); in __ceph_setattr()
2248 attr->ia_size > max(i_size_read(inode), fsc->max_file_size)) in ceph_setattr()
2252 ceph_quota_is_max_bytes_exceeded(inode, attr->ia_size)) in ceph_setattr()
/linux-6.1.9/fs/cifs/
Dinode.c2665 attrs->ia_size, false);
2691 attrs->ia_size, cifs_sb, false);
2701 cifsInode->server_eof = attrs->ia_size;
2702 cifs_setsize(inode, attrs->ia_size);
2710 inode->i_blocks = (512 - 1 + attrs->ia_size) >> 9;
2852 attrs->ia_size != i_size_read(inode)) {
2853 truncate_setsize(inode, attrs->ia_size);
2854 fscache_resize_cookie(cifs_inode_cookie(inode), attrs->ia_size);
3051 attrs->ia_size != i_size_read(inode)) {
3052 truncate_setsize(inode, attrs->ia_size);
[all …]
/linux-6.1.9/fs/coda/
Dcoda_linux.c193 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()
/linux-6.1.9/fs/hfs/
Dinode.c648 attr->ia_size != i_size_read(inode)) { in hfs_inode_setattr()
651 error = inode_newsize_ok(inode, attr->ia_size); in hfs_inode_setattr()
655 truncate_setsize(inode, attr->ia_size); in hfs_inode_setattr()
/linux-6.1.9/fs/9p/
Dvfs_inode.c1109 wstat.length = iattr->ia_size; in v9fs_vfs_setattr()
1132 iattr->ia_size != i_size_read(inode)) { in v9fs_vfs_setattr()
1133 truncate_setsize(inode, iattr->ia_size); in v9fs_vfs_setattr()
1134 fscache_resize_cookie(v9fs_inode_cookie(v9inode), iattr->ia_size); in v9fs_vfs_setattr()

123