Home
last modified time | relevance | path

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

123

/linux-4.19.296/fs/minix/
Dfile.c35 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/
Dfile.c42 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/
Dfile.c123 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/
Dxfs_pnfs.c251 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/
Dfs.c114 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/
Dinode.c729 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/
Dfile.c509 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/
Dinode.c274 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/
Dfile-nommu.c180 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/
Dfile.c357 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/
Dinode.c162 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/
Dfile.c274 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/
Dhostfs.h46 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()
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/
Dinode.c254 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/
Dinode.c243 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/
Dcoda_linux.c175 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()
/linux-4.19.296/fs/ceph/
Dinode.c2093 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/
Dnfsproc.c71 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()
Dvfs.c359 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/
Dinode.c641 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/
Dinode.c2184 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/
Dinterface.c476 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/
Dnfs4file.c68 attr.ia_size = 0; in nfs4_file_open()

123