Home
last modified time | relevance | path

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

1234

/Linux-v6.1/fs/exfat/
Dfile.c255 if ((attr->ia_valid & ATTR_SIZE) && in exfat_setattr()
258 if (error || attr->ia_valid == ATTR_SIZE) in exfat_setattr()
260 attr->ia_valid &= ~ATTR_SIZE; in exfat_setattr()
295 if (attr->ia_valid & ATTR_SIZE) in exfat_setattr()
301 if (attr->ia_valid & ATTR_SIZE) { in exfat_setattr()
/Linux-v6.1/fs/ecryptfs/
Dinode.c735 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
746 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
764 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
801 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
803 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
844 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length }; in ecryptfs_truncate()
853 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate()
943 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr()
952 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr()
/Linux-v6.1/fs/afs/
Dinode.c839 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_success()
851 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_edit_file()
877 ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID | in afs_setattr()
895 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
904 attr->ia_valid &= ~ATTR_SIZE; in afs_setattr()
912 if ((attr->ia_valid & ATTR_SIZE) && S_ISREG(inode->i_mode)) { in afs_setattr()
925 if (!(attr->ia_valid & (supported & ~ATTR_SIZE & ~ATTR_MTIME)) && in afs_setattr()
948 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/fs/minix/
Dfile.c35 if ((attr->ia_valid & ATTR_SIZE) && in minix_setattr()
/Linux-v6.1/fs/sysv/
Dfile.c42 if ((attr->ia_valid & ATTR_SIZE) && in sysv_setattr()
/Linux-v6.1/fs/nfsd/
Dnfsproc.c337 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create()
373 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create()
383 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create()
403 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create()
533 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
Dvfs.c350 if (iap->ia_valid & ATTR_SIZE) { in __nfsd_setattr()
359 .ia_valid = ATTR_SIZE | ATTR_CTIME | ATTR_MTIME, in __nfsd_setattr()
369 iap->ia_valid &= ~ATTR_SIZE; in __nfsd_setattr()
415 bool size_change = (iap->ia_valid & ATTR_SIZE); in nfsd_setattr()
418 if (iap->ia_valid & ATTR_SIZE) { in nfsd_setattr()
1276 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd_check_ignore_resizing()
1277 iap->ia_valid &= ~ATTR_SIZE; in nfsd_check_ignore_resizing()
Dnfs3proc.c302 iap->ia_valid &= ATTR_SIZE; in nfsd3_create_file()
330 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd3_create_file()
331 iap->ia_valid &= ~ATTR_SIZE; in nfsd3_create_file()
388 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir()
/Linux-v6.1/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-v6.1/fs/cachefiles/
Dinterface.c137 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size()
147 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size()
/Linux-v6.1/fs/jfs/
Dfile.c110 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr()
/Linux-v6.1/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-v6.1/fs/coda/
Dcoda_linux.c192 if ( valid & ATTR_SIZE ) { in coda_iattr_to_vattr()
/Linux-v6.1/fs/vboxsf/
Dutils.c275 if (iattr->ia_valid & ATTR_SIZE) in vboxsf_setattr()
334 if (iattr->ia_valid & ATTR_SIZE) { in vboxsf_setattr()
/Linux-v6.1/fs/ubifs/
Dfile.c1228 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1234 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1244 if (attr->ia_valid & ATTR_SIZE) in do_setattr()
1282 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) in ubifs_setattr()
/Linux-v6.1/fs/hostfs/
Dhostfs_kern.c808 attr->ia_valid &= ~ATTR_SIZE; in hostfs_setattr()
823 if (attr->ia_valid & ATTR_SIZE) { in hostfs_setattr()
856 if ((attr->ia_valid & ATTR_SIZE) && in hostfs_setattr()
/Linux-v6.1/fs/9p/
Dvfs_inode_dotl.c517 { ATTR_SIZE, P9_ATTR_SIZE }, in v9fs_mapped_iattr_valid()
563 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr_dotl()
596 if ((iattr->ia_valid & ATTR_SIZE) && in v9fs_vfs_setattr_dotl()
/Linux-v6.1/mm/
Dsecretmem.c175 if ((ia_valid & ATTR_SIZE) && inode->i_size) in secretmem_setattr()
/Linux-v6.1/fs/udf/
Dfile.c279 if ((attr->ia_valid & ATTR_SIZE) && in udf_setattr()
/Linux-v6.1/fs/xfs/
Dxfs_pnfs.c275 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
Dxfs_iops.c667 ASSERT((mask & ATTR_SIZE) == 0); in xfs_setattr_nonsize()
812 iattr->ia_valid &= ~ATTR_SIZE; in xfs_setattr_size()
1003 if (iattr->ia_valid & ATTR_SIZE) { in xfs_vn_setattr()
/Linux-v6.1/fs/crypto/
Dhooks.c122 if (attr->ia_valid & ATTR_SIZE) in __fscrypt_prepare_setattr()

1234