Home
last modified time | relevance | path

Searched refs:ATTR_SIZE (Results 1 – 25 of 86) sorted by relevance

1234

/kernel/linux/linux-5.10/fs/exfat/
Dfile.c292 if ((attr->ia_valid & ATTR_SIZE) && in exfat_setattr()
295 if (error || attr->ia_valid == ATTR_SIZE) in exfat_setattr()
297 attr->ia_valid &= ~ATTR_SIZE; in exfat_setattr()
332 if (attr->ia_valid & ATTR_SIZE) { in exfat_setattr()
/kernel/linux/linux-5.10/fs/ecryptfs/
Dinode.c736 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
747 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
765 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
802 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
804 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
845 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length }; in ecryptfs_truncate()
854 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate()
939 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr()
948 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr()
/kernel/linux/linux-5.10/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()
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()
163 if (ivalid & ATTR_SIZE && 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()
/kernel/linux/linux-5.10/fs/ramfs/
Dfile-nommu.c173 if (ia->ia_valid & ATTR_SIZE) { in ramfs_nommu_setattr()
178 if (ret < 0 || ia->ia_valid == ATTR_SIZE) in ramfs_nommu_setattr()
/kernel/linux/linux-5.10/fs/minix/
Dfile.c34 if ((attr->ia_valid & ATTR_SIZE) && in minix_setattr()
/kernel/linux/linux-5.10/fs/sysv/
Dfile.c41 if ((attr->ia_valid & ATTR_SIZE) && in sysv_setattr()
/kernel/linux/linux-5.10/fs/fat/
Dfile.c497 if (attr->ia_valid & ATTR_SIZE) { in fat_setattr()
502 if (error || attr->ia_valid == ATTR_SIZE) in fat_setattr()
504 attr->ia_valid &= ~ATTR_SIZE; in fat_setattr()
531 if (attr->ia_valid & ATTR_SIZE) { in fat_setattr()
/kernel/linux/linux-5.10/fs/afs/
Dinode.c832 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_success()
844 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_edit_file()
873 if (!(attr->ia_valid & (ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID | in afs_setattr()
880 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
889 attr->ia_valid &= ~ATTR_SIZE; in afs_setattr()
910 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
/kernel/linux/linux-5.10/fs/nfsd/
Dnfsproc.c329 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create()
365 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create()
375 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create()
396 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create()
521 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
Dvfs.c376 bool size_change = (iap->ia_valid & ATTR_SIZE); in nfsd_setattr()
378 if (iap->ia_valid & ATTR_SIZE) { in nfsd_setattr()
447 .ia_valid = ATTR_SIZE | ATTR_CTIME | ATTR_MTIME, in nfsd_setattr()
454 iap->ia_valid &= ~ATTR_SIZE; in nfsd_setattr()
1221 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd_check_ignore_resizing()
1222 iap->ia_valid &= ~ATTR_SIZE; in nfsd_check_ignore_resizing()
1459 *truncp = (iap->ia_valid & ATTR_SIZE) && !iap->ia_size; in do_nfsd_create()
1462 iap->ia_valid &= ATTR_SIZE; in do_nfsd_create()
/kernel/linux/linux-5.10/fs/adfs/
Dinode.c316 if (ia_valid & ATTR_SIZE) in adfs_notify_change()
341 if (ia_valid & (ATTR_SIZE | ATTR_MTIME | ATTR_MODE)) in adfs_notify_change()
/kernel/linux/linux-5.10/fs/jfs/
Dfile.c109 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr()
/kernel/linux/linux-5.10/fs/hpfs/
Dinode.c274 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
281 if ((attr->ia_valid & ATTR_SIZE) && in hpfs_setattr()
/kernel/linux/linux-5.10/fs/coda/
Dcoda_linux.c193 if ( valid & ATTR_SIZE ) { in coda_iattr_to_vattr()
/kernel/linux/linux-5.10/fs/vboxsf/
Dutils.c255 if (iattr->ia_valid & ATTR_SIZE) in vboxsf_setattr()
314 if (iattr->ia_valid & ATTR_SIZE) { in vboxsf_setattr()
/kernel/linux/linux-5.10/fs/cachefiles/
Dinterface.c471 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed()
478 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed()
/kernel/linux/linux-5.10/fs/ubifs/
Dfile.c1227 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1233 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1243 if (attr->ia_valid & ATTR_SIZE) in do_setattr()
1280 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) in ubifs_setattr()
/kernel/linux/linux-5.10/fs/9p/
Dvfs_inode_dotl.c519 { ATTR_SIZE, P9_ATTR_SIZE }, in v9fs_mapped_iattr_valid()
563 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr_dotl()
591 if ((iattr->ia_valid & ATTR_SIZE) && in v9fs_vfs_setattr_dotl()
/kernel/linux/linux-5.10/fs/hostfs/
Dhostfs_kern.c799 attr->ia_valid &= ~ATTR_SIZE; in hostfs_setattr()
814 if (attr->ia_valid & ATTR_SIZE) { in hostfs_setattr()
847 if ((attr->ia_valid & ATTR_SIZE) && in hostfs_setattr()
/kernel/linux/linux-5.10/include/linux/
Dfsnotify.h338 if (ia_valid & ATTR_SIZE) in fsnotify_change()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_pnfs.c239 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
/kernel/linux/linux-5.10/fs/
Dattr.c70 if (ia_valid & ATTR_SIZE) { in setattr_prepare()
/kernel/linux/linux-5.10/fs/udf/
Dfile.c275 if ((attr->ia_valid & ATTR_SIZE) && in udf_setattr()
/kernel/linux/linux-5.10/fs/verity/
Dopen.c331 if (IS_VERITY(d_inode(dentry)) && (attr->ia_valid & ATTR_SIZE)) { in fsverity_prepare_setattr()
/kernel/linux/linux-5.10/fs/fuse/
Ddir.c1474 if ((ivalid & ATTR_SIZE) && (ivalid & (ATTR_OPEN | ATTR_FILE))) in update_mtime()
1492 if (ivalid & ATTR_SIZE) in iattr_to_fattr()
1635 if (attr->ia_valid & ATTR_SIZE) { in fuse_do_setattr()
1653 WARN_ON(!(attr->ia_valid & ATTR_SIZE)); in fuse_do_setattr()
1696 if (attr->ia_valid & ATTR_SIZE) { in fuse_do_setattr()

1234