Lines Matching refs:ia
720 * @ia: Address of the ecryptfs inode's attributes
733 static int truncate_upper(struct dentry *dentry, struct iattr *ia,
743 if (unlikely((ia->ia_size == i_size))) {
752 if (ia->ia_size > i_size) {
761 (ia->ia_size - 1), 1);
762 } else { /* ia->ia_size < i_size_read(inode) */
764 * in which ia->ia_size is located. Fill in the end of
765 * that page from (ia->ia_size & ~PAGE_MASK) to
768 - (ia->ia_size & ~PAGE_MASK));
771 truncate_setsize(inode, ia->ia_size);
772 lower_ia->ia_size = ia->ia_size;
785 ia->ia_size, num_zeros);
794 truncate_setsize(inode, ia->ia_size);
807 upper_size_to_lower_size(crypt_stat, ia->ia_size);
853 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length };
861 rc = truncate_upper(dentry, &ia, &lower_ia);
881 * @ia: Structure with flags of what to change and values
890 static int ecryptfs_setattr(struct dentry *dentry, struct iattr *ia)
944 rc = setattr_prepare(dentry, ia);
947 if (ia->ia_valid & ATTR_SIZE) {
948 rc = ecryptfs_inode_newsize_ok(inode, ia->ia_size);
953 memcpy(&lower_ia, ia, sizeof(lower_ia));
954 if (ia->ia_valid & ATTR_FILE)
955 lower_ia.ia_file = ecryptfs_file_to_lower(ia->ia_file);
956 if (ia->ia_valid & ATTR_SIZE) {
957 rc = truncate_upper(dentry, ia, &lower_ia);