/fs/minix/ |
D | file.c | 34 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/ |
D | file.c | 41 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/ |
D | fs.c | 113 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/ |
D | inode.c | 750 if (unlikely((ia->ia_size == i_size))) { in truncate_upper() 759 if (ia->ia_size > i_size) { in truncate_upper() 768 (ia->ia_size - 1), 1); in truncate_upper() 775 - (ia->ia_size & ~PAGE_CACHE_MASK)); in truncate_upper() 778 truncate_setsize(inode, ia->ia_size); in truncate_upper() 779 lower_ia->ia_size = ia->ia_size; in truncate_upper() 792 ia->ia_size, num_zeros); in truncate_upper() 801 truncate_setsize(inode, ia->ia_size); in truncate_upper() 814 upper_size_to_lower_size(crypt_stat, ia->ia_size); in truncate_upper() 816 lower_ia->ia_size = lower_size_after_truncate; in truncate_upper() [all …]
|
/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()
|
/fs/xfs/ |
D | xfs_pnfs.c | 272 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks() 274 size = iattr->ia_size; in xfs_fs_commit_blocks() 324 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks() 325 ip->i_d.di_size = iattr->ia_size; in xfs_fs_commit_blocks()
|
/fs/fat/ |
D | file.c | 414 if (attr->ia_size > inode->i_size) { in fat_setattr() 415 error = fat_cont_expand(inode, attr->ia_size); in fat_setattr() 446 error = fat_block_truncate_page(inode, attr->ia_size); in fat_setattr() 450 truncate_setsize(inode, attr->ia_size); in fat_setattr() 451 fat_truncate_blocks(inode, attr->ia_size); in fat_setattr()
|
/fs/hpfs/ |
D | inode.c | 272 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr() 280 attr->ia_size != i_size_read(inode)) { in hpfs_setattr() 281 error = inode_newsize_ok(inode, attr->ia_size); in hpfs_setattr() 285 truncate_setsize(inode, attr->ia_size); in hpfs_setattr()
|
/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()
|
/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()
|
/fs/udf/ |
D | file.c | 258 attr->ia_size != i_size_read(inode)) { in udf_setattr() 259 error = udf_setsize(inode, attr->ia_size); in udf_setattr()
|
/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()
|
/fs/affs/ |
D | inode.c | 238 attr->ia_size != i_size_read(inode)) { in affs_notify_change() 239 error = inode_newsize_ok(inode, attr->ia_size); in affs_notify_change() 243 truncate_setsize(inode, attr->ia_size); in affs_notify_change()
|
/fs/hostfs/ |
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.h | 45 loff_t ia_size; member
|
D | hostfs_kern.c | 837 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/ncpfs/ |
D | inode.c | 962 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/hfs/ |
D | inode.c | 633 attr->ia_size != i_size_read(inode)) { in hfs_inode_setattr() 636 error = inode_newsize_ok(inode, attr->ia_size); in hfs_inode_setattr() 640 truncate_setsize(inode, attr->ia_size); in hfs_inode_setattr()
|
/fs/nfsd/ |
D | nfsproc.c | 68 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 242 dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); in nfsd_proc_create() 369 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
|
D | vfs.c | 350 if (iap->ia_size < inode->i_size) { in nfsd_get_write_access() 363 host_err = locks_verify_truncate(inode, NULL, iap->ia_size); in nfsd_get_write_access() 460 .ia_size = iap->ia_size, in nfsd_setattr() 1153 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd_check_ignore_resizing() 1383 *truncp = (iap->ia_valid & ATTR_SIZE) && !iap->ia_size; in do_nfsd_create()
|
D | blocklayout.c | 166 iattr.ia_size = new_size; in nfsd4_block_proc_layoutcommit()
|
/fs/cifs/ |
D | inode.c | 2120 attrs->ia_size, false); 2146 attrs->ia_size, cifs_sb, false); 2156 cifsInode->server_eof = attrs->ia_size; 2157 cifs_setsize(inode, attrs->ia_size); 2283 attrs->ia_size != i_size_read(inode)) 2284 truncate_setsize(inode, attrs->ia_size); 2453 attrs->ia_size != i_size_read(inode)) 2454 truncate_setsize(inode, attrs->ia_size);
|
/fs/coda/ |
D | coda_linux.c | 174 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()
|
/fs/cachefiles/ |
D | interface.c | 457 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_attr_changed() 464 newattrs.ia_size = ni_size; in cachefiles_attr_changed()
|
/fs/ceph/ |
D | inode.c | 1920 inode->i_size, attr->ia_size); in __ceph_setattr() 1922 attr->ia_size > inode->i_size) { in __ceph_setattr() 1923 inode->i_size = attr->ia_size; in __ceph_setattr() 1925 (attr->ia_size + (1 << 9) - 1) >> 9; in __ceph_setattr() 1927 ci->i_reported_size = attr->ia_size; in __ceph_setattr() 1930 attr->ia_size != inode->i_size) { in __ceph_setattr() 1931 req->r_args.setattr.size = cpu_to_le64(attr->ia_size); in __ceph_setattr()
|