• Home
  • Raw
  • Download

Lines Matching refs:attr

149 		ei->attr |= ATTR_ARCHIVE;  in __exfat_truncate()
171 ep->dentry.file.attr = cpu_to_le16(ei->attr); in __exfat_truncate()
284 int exfat_setattr(struct dentry *dentry, struct iattr *attr) in exfat_setattr() argument
291 if ((attr->ia_valid & ATTR_SIZE) && in exfat_setattr()
292 attr->ia_size > i_size_read(inode)) { in exfat_setattr()
293 error = exfat_cont_expand(inode, attr->ia_size); in exfat_setattr()
294 if (error || attr->ia_valid == ATTR_SIZE) in exfat_setattr()
296 attr->ia_valid &= ~ATTR_SIZE; in exfat_setattr()
300 ia_valid = attr->ia_valid; in exfat_setattr()
303 attr->ia_valid &= ~(ATTR_MTIME_SET | ATTR_ATIME_SET | in exfat_setattr()
307 error = setattr_prepare(dentry, attr); in exfat_setattr()
308 attr->ia_valid = ia_valid; in exfat_setattr()
312 if (((attr->ia_valid & ATTR_UID) && in exfat_setattr()
313 !uid_eq(attr->ia_uid, sbi->options.fs_uid)) || in exfat_setattr()
314 ((attr->ia_valid & ATTR_GID) && in exfat_setattr()
315 !gid_eq(attr->ia_gid, sbi->options.fs_gid)) || in exfat_setattr()
316 ((attr->ia_valid & ATTR_MODE) && in exfat_setattr()
317 (attr->ia_mode & ~(S_IFREG | S_IFLNK | S_IFDIR | 0777)))) { in exfat_setattr()
326 if (attr->ia_valid & ATTR_MODE) { in exfat_setattr()
327 if (exfat_sanitize_mode(sbi, inode, &attr->ia_mode) < 0) in exfat_setattr()
328 attr->ia_valid &= ~ATTR_MODE; in exfat_setattr()
331 if (attr->ia_valid & ATTR_SIZE) { in exfat_setattr()
332 error = exfat_block_truncate_page(inode, attr->ia_size); in exfat_setattr()
337 truncate_setsize(inode, attr->ia_size); in exfat_setattr()
338 exfat_truncate(inode, attr->ia_size); in exfat_setattr()
342 setattr_copy(inode, attr); in exfat_setattr()