Home
last modified time | relevance | path

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

123

/fs/minix/
Dfile.c34 attr->ia_size != i_size_read(inode)) { in minix_setattr()
35 error = inode_newsize_ok(inode, attr->ia_size); in minix_setattr()
39 truncate_setsize(inode, attr->ia_size); in minix_setattr()
/fs/sysv/
Dfile.c41 attr->ia_size != i_size_read(inode)) { in sysv_setattr()
42 error = inode_newsize_ok(inode, attr->ia_size); in sysv_setattr()
45 truncate_setsize(inode, attr->ia_size); in sysv_setattr()
/fs/jffs2/
Dfs.c113 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr()
121 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr()
124 ri->dsize = cpu_to_je32(iattr->ia_size - inode->i_size); in jffs2_do_setattr()
126 } else if (ivalid & ATTR_SIZE && !iattr->ia_size) { in jffs2_do_setattr()
158 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) in jffs2_do_setattr()
159 jffs2_truncate_fragtree (c, &f->fragtree, iattr->ia_size); in jffs2_do_setattr()
161 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr()
163 inode->i_size = iattr->ia_size; in jffs2_do_setattr()
183 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) { in jffs2_do_setattr()
184 truncate_setsize(inode, iattr->ia_size); in jffs2_do_setattr()
/fs/ecryptfs/
Dinode.c733 if (unlikely((ia->ia_size == i_size))) { in truncate_upper()
742 if (ia->ia_size > i_size) { in truncate_upper()
751 (ia->ia_size - 1), 1); in truncate_upper()
758 - (ia->ia_size & ~PAGE_MASK)); in truncate_upper()
761 truncate_setsize(inode, ia->ia_size); in truncate_upper()
762 lower_ia->ia_size = ia->ia_size; in truncate_upper()
775 ia->ia_size, num_zeros); in truncate_upper()
784 truncate_setsize(inode, ia->ia_size); in truncate_upper()
797 upper_size_to_lower_size(crypt_stat, ia->ia_size); in truncate_upper()
799 lower_ia->ia_size = lower_size_after_truncate; in truncate_upper()
[all …]
/fs/xfs/
Dxfs_pnfs.c254 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
256 size = iattr->ia_size; in xfs_fs_commit_blocks()
303 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks()
304 ip->i_d.di_size = iattr->ia_size; in xfs_fs_commit_blocks()
/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()
/fs/fat/
Dfile.c470 if (attr->ia_size > inode->i_size) { in fat_setattr()
471 error = fat_cont_expand(inode, attr->ia_size); in fat_setattr()
502 error = fat_block_truncate_page(inode, attr->ia_size); in fat_setattr()
506 truncate_setsize(inode, attr->ia_size); in fat_setattr()
507 fat_truncate_blocks(inode, attr->ia_size); in fat_setattr()
/fs/hpfs/
Dinode.c273 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
281 attr->ia_size != i_size_read(inode)) { in hpfs_setattr()
282 error = inode_newsize_ok(inode, attr->ia_size); in hpfs_setattr()
286 truncate_setsize(inode, attr->ia_size); in hpfs_setattr()
/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()
/fs/orangefs/
Dinode.c166 iattr->ia_size); in orangefs_setattr_size()
179 truncate_setsize(inode, iattr->ia_size); in orangefs_setattr_size()
186 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
/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()
/fs/udf/
Dfile.c269 attr->ia_size != i_size_read(inode)) { in udf_setattr()
270 error = udf_setsize(inode, attr->ia_size); in udf_setattr()
/fs/hfsplus/
Dinode.c253 attr->ia_size != i_size_read(inode)) { in hfsplus_setattr()
255 if (attr->ia_size > inode->i_size) { in hfsplus_setattr()
257 attr->ia_size); in hfsplus_setattr()
261 truncate_setsize(inode, attr->ia_size); in hfsplus_setattr()
/fs/affs/
Dinode.c239 attr->ia_size != i_size_read(inode)) { in affs_notify_change()
240 error = inode_newsize_ok(inode, attr->ia_size); in affs_notify_change()
244 truncate_setsize(inode, attr->ia_size); in affs_notify_change()
/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.h45 loff_t ia_size; member
Dhostfs_kern.c837 attrs.ia_size = attr->ia_size; in hostfs_setattr()
866 attr->ia_size != i_size_read(inode)) in hostfs_setattr()
867 truncate_setsize(inode, attr->ia_size); in hostfs_setattr()
/fs/cifs/
Dinode.c2124 attrs->ia_size, false);
2150 attrs->ia_size, cifs_sb, false);
2160 cifsInode->server_eof = attrs->ia_size;
2161 cifs_setsize(inode, attrs->ia_size);
2287 attrs->ia_size != i_size_read(inode))
2288 truncate_setsize(inode, attrs->ia_size);
2457 attrs->ia_size != i_size_read(inode))
2458 truncate_setsize(inode, attrs->ia_size);
/fs/ncpfs/
Dinode.c962 ncp_dbg(1, "trying to change size to %llu\n", attr->ia_size); in ncp_notify_change()
969 attr->ia_size, 0, "", &written); in ncp_notify_change()
978 if (attr->ia_size != i_size_read(inode)) { in ncp_notify_change()
979 truncate_setsize(inode, attr->ia_size); in ncp_notify_change()
/fs/nfsd/
Dnfsproc.c68 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
240 dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); in nfsd_proc_create()
364 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
Dvfs.c358 if (iap->ia_size < inode->i_size) { in nfsd_get_write_access()
371 host_err = locks_verify_truncate(inode, NULL, iap->ia_size); in nfsd_get_write_access()
455 .ia_size = iap->ia_size, in nfsd_setattr()
1181 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd_check_ignore_resizing()
1396 *truncp = (iap->ia_valid & ATTR_SIZE) && !iap->ia_size; in do_nfsd_create()
/fs/hfs/
Dinode.c635 attr->ia_size != i_size_read(inode)) { in hfs_inode_setattr()
638 error = inode_newsize_ok(inode, attr->ia_size); in hfs_inode_setattr()
642 truncate_setsize(inode, attr->ia_size); in hfs_inode_setattr()
/fs/coda/
Dcoda_linux.c174 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()
/fs/cachefiles/
Dinterface.c456 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_attr_changed()
463 newattrs.ia_size = ni_size; in cachefiles_attr_changed()
/fs/9p/
Dvfs_inode_dotl.c572 p9attr.size = iattr->ia_size; in v9fs_vfs_setattr_dotl()
591 iattr->ia_size != i_size_read(inode)) in v9fs_vfs_setattr_dotl()
592 truncate_setsize(inode, iattr->ia_size); in v9fs_vfs_setattr_dotl()

123