/linux-4.19.296/fs/minix/ |
D | file.c | 35 attr->ia_size != i_size_read(inode)) { in minix_setattr() 36 error = inode_newsize_ok(inode, attr->ia_size); in minix_setattr() 40 truncate_setsize(inode, attr->ia_size); in minix_setattr()
|
/linux-4.19.296/fs/sysv/ |
D | file.c | 42 attr->ia_size != i_size_read(inode)) { in sysv_setattr() 43 error = inode_newsize_ok(inode, attr->ia_size); in sysv_setattr() 46 truncate_setsize(inode, attr->ia_size); in sysv_setattr()
|
/linux-4.19.296/fs/jfs/ |
D | file.c | 123 iattr->ia_size != i_size_read(inode)) { in jfs_setattr() 126 rc = inode_newsize_ok(inode, iattr->ia_size); in jfs_setattr() 130 truncate_setsize(inode, iattr->ia_size); in jfs_setattr()
|
/linux-4.19.296/fs/xfs/ |
D | xfs_pnfs.c | 251 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks() 253 size = iattr->ia_size; in xfs_fs_commit_blocks() 300 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks() 301 ip->i_d.di_size = iattr->ia_size; in xfs_fs_commit_blocks()
|
/linux-4.19.296/fs/jffs2/ |
D | fs.c | 114 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr() 122 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr() 125 ri->dsize = cpu_to_je32(iattr->ia_size - inode->i_size); in jffs2_do_setattr() 127 } else if (ivalid & ATTR_SIZE && !iattr->ia_size) { in jffs2_do_setattr() 159 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) in jffs2_do_setattr() 160 jffs2_truncate_fragtree (c, &f->fragtree, iattr->ia_size); in jffs2_do_setattr() 162 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr() 164 inode->i_size = iattr->ia_size; in jffs2_do_setattr() 184 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) { in jffs2_do_setattr() 185 truncate_setsize(inode, iattr->ia_size); in jffs2_do_setattr()
|
/linux-4.19.296/fs/ecryptfs/ |
D | inode.c | 729 if (unlikely((ia->ia_size == i_size))) { in truncate_upper() 738 if (ia->ia_size > i_size) { in truncate_upper() 747 (ia->ia_size - 1), 1); in truncate_upper() 754 - (ia->ia_size & ~PAGE_MASK)); in truncate_upper() 757 truncate_setsize(inode, ia->ia_size); in truncate_upper() 758 lower_ia->ia_size = ia->ia_size; in truncate_upper() 771 ia->ia_size, num_zeros); in truncate_upper() 780 truncate_setsize(inode, ia->ia_size); in truncate_upper() 793 upper_size_to_lower_size(crypt_stat, ia->ia_size); in truncate_upper() 795 lower_ia->ia_size = lower_size_after_truncate; in truncate_upper() [all …]
|
/linux-4.19.296/fs/fat/ |
D | file.c | 509 if (attr->ia_size > inode->i_size) { in fat_setattr() 510 error = fat_cont_expand(inode, attr->ia_size); in fat_setattr() 541 error = fat_block_truncate_page(inode, attr->ia_size); in fat_setattr() 545 truncate_setsize(inode, attr->ia_size); in fat_setattr() 546 fat_truncate_blocks(inode, attr->ia_size); in fat_setattr()
|
/linux-4.19.296/fs/hpfs/ |
D | inode.c | 274 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr() 282 attr->ia_size != i_size_read(inode)) { in hpfs_setattr() 283 error = inode_newsize_ok(inode, attr->ia_size); in hpfs_setattr() 287 truncate_setsize(inode, attr->ia_size); in hpfs_setattr()
|
/linux-4.19.296/fs/ramfs/ |
D | file-nommu.c | 180 if (ia->ia_size != size) { in ramfs_nommu_setattr() 181 ret = ramfs_nommu_resize(inode, ia->ia_size, size); in ramfs_nommu_setattr()
|
/linux-4.19.296/fs/omfs/ |
D | file.c | 357 attr->ia_size != i_size_read(inode)) { in omfs_setattr() 358 error = inode_newsize_ok(inode, attr->ia_size); in omfs_setattr() 361 truncate_setsize(inode, attr->ia_size); in omfs_setattr()
|
/linux-4.19.296/fs/orangefs/ |
D | inode.c | 162 iattr->ia_size); in orangefs_setattr_size() 175 truncate_setsize(inode, iattr->ia_size); in orangefs_setattr_size() 182 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
|
/linux-4.19.296/fs/udf/ |
D | file.c | 274 attr->ia_size != i_size_read(inode)) { in udf_setattr() 275 error = udf_setsize(inode, attr->ia_size); in udf_setattr()
|
/linux-4.19.296/fs/hostfs/ |
D | hostfs.h | 46 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() 854 attr->ia_size != i_size_read(inode)) in hostfs_setattr() 855 truncate_setsize(inode, attr->ia_size); in hostfs_setattr()
|
/linux-4.19.296/fs/hfsplus/ |
D | inode.c | 254 attr->ia_size != i_size_read(inode)) { in hfsplus_setattr() 256 if (attr->ia_size > inode->i_size) { in hfsplus_setattr() 258 attr->ia_size); in hfsplus_setattr() 262 truncate_setsize(inode, attr->ia_size); in hfsplus_setattr()
|
/linux-4.19.296/fs/affs/ |
D | inode.c | 243 attr->ia_size != i_size_read(inode)) { in affs_notify_change() 244 error = inode_newsize_ok(inode, attr->ia_size); in affs_notify_change() 248 truncate_setsize(inode, attr->ia_size); in affs_notify_change()
|
/linux-4.19.296/fs/coda/ |
D | coda_linux.c | 175 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()
|
/linux-4.19.296/fs/ceph/ |
D | inode.c | 2093 inode->i_size, attr->ia_size); in __ceph_setattr() 2095 attr->ia_size > inode->i_size) { in __ceph_setattr() 2096 i_size_write(inode, attr->ia_size); in __ceph_setattr() 2097 inode->i_blocks = calc_inode_blocks(attr->ia_size); in __ceph_setattr() 2098 ci->i_reported_size = attr->ia_size; in __ceph_setattr() 2101 attr->ia_size != inode->i_size) { in __ceph_setattr() 2102 req->r_args.setattr.size = cpu_to_le64(attr->ia_size); in __ceph_setattr() 2191 attr->ia_size > max(inode->i_size, fsc->max_file_size)) in ceph_setattr() 2195 ceph_quota_is_max_bytes_exceeded(inode, attr->ia_size)) in ceph_setattr()
|
/linux-4.19.296/fs/nfsd/ |
D | nfsproc.c | 71 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 264 dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); in nfsd_proc_create() 388 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
|
D | vfs.c | 359 if (iap->ia_size < inode->i_size) { in nfsd_get_write_access() 372 host_err = locks_verify_truncate(inode, NULL, iap->ia_size); in nfsd_get_write_access() 469 .ia_size = iap->ia_size, in nfsd_setattr() 1174 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd_check_ignore_resizing() 1414 *truncp = (iap->ia_valid & ATTR_SIZE) && !iap->ia_size; in do_nfsd_create()
|
/linux-4.19.296/fs/hfs/ |
D | inode.c | 641 attr->ia_size != i_size_read(inode)) { in hfs_inode_setattr() 644 error = inode_newsize_ok(inode, attr->ia_size); in hfs_inode_setattr() 648 truncate_setsize(inode, attr->ia_size); in hfs_inode_setattr()
|
/linux-4.19.296/fs/cifs/ |
D | inode.c | 2184 attrs->ia_size, false); 2210 attrs->ia_size, cifs_sb, false); 2220 cifsInode->server_eof = attrs->ia_size; 2221 cifs_setsize(inode, attrs->ia_size); 2361 attrs->ia_size != i_size_read(inode)) 2362 truncate_setsize(inode, attrs->ia_size); 2536 attrs->ia_size != i_size_read(inode)) 2537 truncate_setsize(inode, attrs->ia_size);
|
/linux-4.19.296/fs/cachefiles/ |
D | interface.c | 476 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_attr_changed() 483 newattrs.ia_size = ni_size; in cachefiles_attr_changed()
|
/linux-4.19.296/fs/nfs/ |
D | nfs4file.c | 68 attr.ia_size = 0; in nfs4_file_open()
|