Lines Matching refs:attr
260 int hpfs_setattr(struct dentry *dentry, struct iattr *attr) in hpfs_setattr() argument
268 if ((attr->ia_valid & ATTR_UID) && in hpfs_setattr()
269 from_kuid(&init_user_ns, attr->ia_uid) >= 0x10000) in hpfs_setattr()
271 if ((attr->ia_valid & ATTR_GID) && in hpfs_setattr()
272 from_kgid(&init_user_ns, attr->ia_gid) >= 0x10000) in hpfs_setattr()
274 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
277 error = setattr_prepare(dentry, attr); in hpfs_setattr()
281 if ((attr->ia_valid & ATTR_SIZE) && in hpfs_setattr()
282 attr->ia_size != i_size_read(inode)) { in hpfs_setattr()
283 error = inode_newsize_ok(inode, attr->ia_size); in hpfs_setattr()
287 truncate_setsize(inode, attr->ia_size); in hpfs_setattr()
291 setattr_copy(inode, attr); in hpfs_setattr()