Home
last modified time | relevance | path

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

1234

/linux-6.6.21/fs/exfat/
Dfile.c252 if ((attr->ia_valid & ATTR_SIZE) && in exfat_setattr()
255 if (error || attr->ia_valid == ATTR_SIZE) in exfat_setattr()
257 attr->ia_valid &= ~ATTR_SIZE; in exfat_setattr()
292 if (attr->ia_valid & ATTR_SIZE) in exfat_setattr()
298 if (attr->ia_valid & ATTR_SIZE) { in exfat_setattr()
/linux-6.6.21/fs/afs/
Dinode.c858 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_success()
870 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_edit_file()
896 ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID | in afs_setattr()
914 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
923 attr->ia_valid &= ~ATTR_SIZE; in afs_setattr()
931 if ((attr->ia_valid & ATTR_SIZE) && S_ISREG(inode->i_mode)) { in afs_setattr()
944 if (!(attr->ia_valid & (supported & ~ATTR_SIZE & ~ATTR_MTIME)) && in afs_setattr()
967 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
/linux-6.6.21/fs/ecryptfs/
Dinode.c745 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
756 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
774 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
811 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
813 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
854 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length }; in ecryptfs_truncate()
863 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate()
953 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr()
962 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr()
/linux-6.6.21/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()
/linux-6.6.21/fs/ramfs/
Dfile-nommu.c174 if (ia->ia_valid & ATTR_SIZE) { in ramfs_nommu_setattr()
179 if (ret < 0 || ia->ia_valid == ATTR_SIZE) in ramfs_nommu_setattr()
/linux-6.6.21/fs/fat/
Dfile.c509 if (attr->ia_valid & ATTR_SIZE) { in fat_setattr()
514 if (error || attr->ia_valid == ATTR_SIZE) in fat_setattr()
516 attr->ia_valid &= ~ATTR_SIZE; in fat_setattr()
545 if (attr->ia_valid & ATTR_SIZE) { in fat_setattr()
/linux-6.6.21/fs/sysv/
Dfile.c42 if ((attr->ia_valid & ATTR_SIZE) && in sysv_setattr()
/linux-6.6.21/fs/minix/
Dfile.c35 if ((attr->ia_valid & ATTR_SIZE) && in minix_setattr()
/linux-6.6.21/fs/nfsd/
Dnfsproc.c325 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create()
361 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create()
371 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create()
391 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create()
521 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
Dnfs3proc.c291 iap->ia_valid &= ATTR_SIZE; in nfsd3_create_file()
321 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd3_create_file()
322 iap->ia_valid &= ~ATTR_SIZE; in nfsd3_create_file()
379 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir()
Dvfs.c419 if (iap->ia_valid & ATTR_SIZE) { in __nfsd_setattr()
428 .ia_valid = ATTR_SIZE | ATTR_CTIME | ATTR_MTIME, in __nfsd_setattr()
438 iap->ia_valid &= ~ATTR_SIZE; in __nfsd_setattr()
484 bool size_change = (iap->ia_valid & ATTR_SIZE); in nfsd_setattr()
487 if (iap->ia_valid & ATTR_SIZE) { in nfsd_setattr()
1401 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd_check_ignore_resizing()
1402 iap->ia_valid &= ~ATTR_SIZE; in nfsd_check_ignore_resizing()
/linux-6.6.21/fs/adfs/
Dinode.c319 if (ia_valid & ATTR_SIZE) in adfs_notify_change()
344 if (ia_valid & (ATTR_SIZE | ATTR_MTIME | ATTR_MODE)) in adfs_notify_change()
/linux-6.6.21/fs/cachefiles/
Dinterface.c137 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size()
147 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size()
/linux-6.6.21/fs/jfs/
Dfile.c110 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr()
/linux-6.6.21/fs/hpfs/
Dinode.c275 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
282 if ((attr->ia_valid & ATTR_SIZE) && in hpfs_setattr()
/linux-6.6.21/fs/coda/
Dcoda_linux.c193 if ( valid & ATTR_SIZE ) { in coda_iattr_to_vattr()
/linux-6.6.21/fs/vboxsf/
Dutils.c275 if (iattr->ia_valid & ATTR_SIZE) in vboxsf_setattr()
334 if (iattr->ia_valid & ATTR_SIZE) { in vboxsf_setattr()
/linux-6.6.21/fs/ubifs/
Dfile.c1234 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1240 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1250 if (attr->ia_valid & ATTR_SIZE) in do_setattr()
1288 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) in ubifs_setattr()
/linux-6.6.21/fs/9p/
Dvfs_inode_dotl.c513 { ATTR_SIZE, P9_ATTR_SIZE }, in v9fs_mapped_iattr_valid()
562 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr_dotl()
599 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size != in v9fs_vfs_setattr_dotl()
/linux-6.6.21/mm/
Dsecretmem.c177 if ((ia_valid & ATTR_SIZE) && inode->i_size) in secretmem_setattr()
/linux-6.6.21/fs/udf/
Dfile.c233 if ((attr->ia_valid & ATTR_SIZE) && in udf_setattr()
/linux-6.6.21/fs/hostfs/
Dhostfs_kern.c816 attr->ia_valid &= ~ATTR_SIZE; in hostfs_setattr()
831 if (attr->ia_valid & ATTR_SIZE) { in hostfs_setattr()
864 if ((attr->ia_valid & ATTR_SIZE) && in hostfs_setattr()
/linux-6.6.21/fs/xfs/
Dxfs_iops.c672 ASSERT((mask & ATTR_SIZE) == 0); in xfs_setattr_nonsize()
818 iattr->ia_valid &= ~ATTR_SIZE; in xfs_setattr_size()
1009 if (iattr->ia_valid & ATTR_SIZE) { in xfs_vn_setattr()
Dxfs_pnfs.c277 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
/linux-6.6.21/include/linux/
Dfsnotify.h366 if (ia_valid & ATTR_SIZE) in fsnotify_change()

1234