Home
last modified time | relevance | path

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

123

/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()
/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()
/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()
/fs/ecryptfs/
Dinode.c743 if (unlikely((ia->ia_size == i_size))) { in truncate_upper()
752 if (ia->ia_size > i_size) { in truncate_upper()
761 (ia->ia_size - 1), 1); in truncate_upper()
768 - (ia->ia_size & ~PAGE_MASK)); in truncate_upper()
771 truncate_setsize(inode, ia->ia_size); in truncate_upper()
772 lower_ia->ia_size = ia->ia_size; in truncate_upper()
785 ia->ia_size, num_zeros); in truncate_upper()
794 truncate_setsize(inode, ia->ia_size); in truncate_upper()
807 upper_size_to_lower_size(crypt_stat, ia->ia_size); in truncate_upper()
809 lower_ia->ia_size = lower_size_after_truncate; in truncate_upper()
[all …]
/fs/xfs/
Dxfs_pnfs.c241 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
243 size = iattr->ia_size; in xfs_fs_commit_blocks()
291 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks()
292 ip->i_d.di_size = iattr->ia_size; in xfs_fs_commit_blocks()
/fs/jfs/
Dfile.c110 iattr->ia_size != i_size_read(inode)) { in jfs_setattr()
113 rc = inode_newsize_ok(inode, iattr->ia_size); in jfs_setattr()
117 truncate_setsize(inode, iattr->ia_size); in jfs_setattr()
/fs/exfat/
Dfile.c292 attr->ia_size > i_size_read(inode)) { in exfat_setattr()
293 error = exfat_cont_expand(inode, attr->ia_size); in exfat_setattr()
332 error = exfat_block_truncate_page(inode, attr->ia_size); in exfat_setattr()
337 truncate_setsize(inode, attr->ia_size); in exfat_setattr()
338 exfat_truncate(inode, attr->ia_size); in exfat_setattr()
/fs/fat/
Dfile.c500 if (attr->ia_size > inode->i_size) { in fat_setattr()
501 error = fat_cont_expand(inode, attr->ia_size); in fat_setattr()
532 error = fat_block_truncate_page(inode, attr->ia_size); in fat_setattr()
536 truncate_setsize(inode, attr->ia_size); in fat_setattr()
537 fat_truncate_blocks(inode, attr->ia_size); in fat_setattr()
/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()
/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()
/fs/ramfs/
Dfile-nommu.c176 if (ia->ia_size != size) { in ramfs_nommu_setattr()
177 ret = ramfs_nommu_resize(inode, ia->ia_size, size); in ramfs_nommu_setattr()
/fs/orangefs/
Dinode.c761 iattr->ia_size); in orangefs_setattr_size()
775 truncate_pagecache(inode, iattr->ia_size); in orangefs_setattr_size()
776 i_size_write(inode, iattr->ia_size); in orangefs_setattr_size()
777 if (iattr->ia_size > orig_size) in orangefs_setattr_size()
778 pagecache_isize_extended(inode, orig_size, iattr->ia_size); in orangefs_setattr_size()
785 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
/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()
/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()
/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()
/fs/hostfs/
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.c816 attrs.ia_size = attr->ia_size; in hostfs_setattr()
848 attr->ia_size != i_size_read(inode)) in hostfs_setattr()
849 truncate_setsize(inode, attr->ia_size); in hostfs_setattr()
Dhostfs.h50 loff_t ia_size; member
/fs/afs/
Dinode.c834 loff_t size = op->setattr.attr->ia_size; in afs_setattr_success()
846 loff_t size = op->setattr.attr->ia_size; in afs_setattr_edit_file()
885 ret = inode_newsize_ok(&vnode->vfs_inode, attr->ia_size); in afs_setattr()
889 if (attr->ia_size == i_size_read(&vnode->vfs_inode)) in afs_setattr()
Dfsclient.c1241 *bp++ = htonl(upper_32_bits(attr->ia_size)); /* position of start of write */ in afs_fs_setattr_size64()
1242 *bp++ = htonl(lower_32_bits(attr->ia_size)); in afs_fs_setattr_size64()
1245 *bp++ = htonl(upper_32_bits(attr->ia_size)); /* new file length */ in afs_fs_setattr_size64()
1246 *bp++ = htonl(lower_32_bits(attr->ia_size)); in afs_fs_setattr_size64()
1267 if (upper_32_bits(attr->ia_size)) in afs_fs_setattr_size()
1285 *bp++ = htonl(attr->ia_size); /* position of start of write */ in afs_fs_setattr_size()
1287 *bp++ = htonl(attr->ia_size); /* new file length */ in afs_fs_setattr_size()
/fs/ceph/
Dinode.c2141 inode->i_size, attr->ia_size); in __ceph_setattr()
2143 attr->ia_size > inode->i_size) { in __ceph_setattr()
2144 i_size_write(inode, attr->ia_size); in __ceph_setattr()
2145 inode->i_blocks = calc_inode_blocks(attr->ia_size); in __ceph_setattr()
2146 ci->i_reported_size = attr->ia_size; in __ceph_setattr()
2150 attr->ia_size != inode->i_size) { in __ceph_setattr()
2151 req->r_args.setattr.size = cpu_to_le64(attr->ia_size); in __ceph_setattr()
2262 attr->ia_size > max(inode->i_size, fsc->max_file_size)) in ceph_setattr()
2266 ceph_quota_is_max_bytes_exceeded(inode, attr->ia_size)) in ceph_setattr()
/fs/cifs/
Dinode.c2529 attrs->ia_size, false);
2555 attrs->ia_size, cifs_sb, false);
2565 cifsInode->server_eof = attrs->ia_size;
2566 cifs_setsize(inode, attrs->ia_size);
2574 inode->i_blocks = (512 - 1 + attrs->ia_size) >> 9;
2714 attrs->ia_size != i_size_read(inode))
2715 truncate_setsize(inode, attrs->ia_size);
2904 attrs->ia_size != i_size_read(inode))
2905 truncate_setsize(inode, attrs->ia_size);
/fs/hfs/
Dinode.c642 attr->ia_size != i_size_read(inode)) { in hfs_inode_setattr()
645 error = inode_newsize_ok(inode, attr->ia_size); in hfs_inode_setattr()
649 truncate_setsize(inode, attr->ia_size); in hfs_inode_setattr()
/fs/nfsd/
Dnfsproc.c58 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
266 dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); in nfsd_proc_create()
391 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
Dvfs.c338 if (iap->ia_size < inode->i_size) { in nfsd_get_write_access()
351 host_err = locks_verify_truncate(inode, NULL, iap->ia_size); in nfsd_get_write_access()
448 .ia_size = iap->ia_size, in nfsd_setattr()
1221 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd_check_ignore_resizing()
1459 *truncp = (iap->ia_valid & ATTR_SIZE) && !iap->ia_size; in do_nfsd_create()

123