/linux-6.1.9/fs/sysv/ |
D | file.c | 43 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/ |
D | file.c | 36 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/ |
D | fs.c | 115 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/ |
D | inode.c | 734 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/ |
D | file.c | 111 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/ |
D | file.c | 256 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/ |
D | xfs_pnfs.c | 275 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/ |
D | inode.c | 840 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/ |
D | file.c | 512 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/ |
D | inode.c | 275 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/ |
D | file.c | 356 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/ |
D | file-nommu.c | 177 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/ |
D | file.c | 280 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/ |
D | inode.c | 244 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/ |
D | inode.c | 730 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/ |
D | hostfs.h | 50 loff_t ia_size; member
|
D | hostfs_user.c | 226 if (ftruncate(fd, attrs->ia_size)) in set_attr() 228 } else if (truncate(file, attrs->ia_size)) { in set_attr()
|
D | hostfs_kern.c | 825 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/ |
D | inode.c | 260 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/ |
D | interface.c | 138 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/ |
D | inode.c | 2123 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/ |
D | inode.c | 2665 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/ |
D | coda_linux.c | 193 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()
|
/linux-6.1.9/fs/hfs/ |
D | inode.c | 648 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/ |
D | vfs_inode.c | 1109 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()
|