Lines Matching refs:attr
1075 static void do_attr_changes(struct inode *inode, const struct iattr *attr) in do_attr_changes() argument
1077 if (attr->ia_valid & ATTR_UID) in do_attr_changes()
1078 inode->i_uid = attr->ia_uid; in do_attr_changes()
1079 if (attr->ia_valid & ATTR_GID) in do_attr_changes()
1080 inode->i_gid = attr->ia_gid; in do_attr_changes()
1081 if (attr->ia_valid & ATTR_ATIME) { in do_attr_changes()
1082 inode->i_atime = timestamp_truncate(attr->ia_atime, in do_attr_changes()
1085 if (attr->ia_valid & ATTR_MTIME) { in do_attr_changes()
1086 inode->i_mtime = timestamp_truncate(attr->ia_mtime, in do_attr_changes()
1089 if (attr->ia_valid & ATTR_CTIME) { in do_attr_changes()
1090 inode->i_ctime = timestamp_truncate(attr->ia_ctime, in do_attr_changes()
1093 if (attr->ia_valid & ATTR_MODE) { in do_attr_changes()
1094 umode_t mode = attr->ia_mode; in do_attr_changes()
1113 const struct iattr *attr) in do_truncation() argument
1117 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation()
1194 do_attr_changes(inode, attr); in do_truncation()
1219 const struct iattr *attr) in do_setattr() argument
1222 loff_t new_size = attr->ia_size; in do_setattr()
1231 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1237 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1244 do_attr_changes(inode, attr); in do_setattr()
1247 if (attr->ia_valid & ATTR_SIZE) in do_setattr()
1264 int ubifs_setattr(struct dentry *dentry, struct iattr *attr) in ubifs_setattr() argument
1271 inode->i_ino, inode->i_mode, attr->ia_valid); in ubifs_setattr()
1272 err = setattr_prepare(dentry, attr); in ubifs_setattr()
1280 err = fscrypt_prepare_setattr(dentry, attr); in ubifs_setattr()
1284 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) in ubifs_setattr()
1286 err = do_truncation(c, inode, attr); in ubifs_setattr()
1288 err = do_setattr(c, inode, attr); in ubifs_setattr()