Lines Matching refs:ia
721 * @ia: Address of the ecryptfs inode's attributes
734 static int truncate_upper(struct dentry *dentry, struct iattr *ia,
744 if (unlikely((ia->ia_size == i_size))) {
753 if (ia->ia_size > i_size) {
762 (ia->ia_size - 1), 1);
763 } else { /* ia->ia_size < i_size_read(inode) */
765 * in which ia->ia_size is located. Fill in the end of
766 * that page from (ia->ia_size & ~PAGE_MASK) to
769 - (ia->ia_size & ~PAGE_MASK));
772 truncate_setsize(inode, ia->ia_size);
773 lower_ia->ia_size = ia->ia_size;
786 ia->ia_size, num_zeros);
795 truncate_setsize(inode, ia->ia_size);
808 upper_size_to_lower_size(crypt_stat, ia->ia_size);
854 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length };
862 rc = truncate_upper(dentry, &ia, &lower_ia);
886 * @ia: Structure with flags of what to change and values
896 struct dentry *dentry, struct iattr *ia)
950 rc = setattr_prepare(&nop_mnt_idmap, dentry, ia);
953 if (ia->ia_valid & ATTR_SIZE) {
954 rc = ecryptfs_inode_newsize_ok(inode, ia->ia_size);
959 memcpy(&lower_ia, ia, sizeof(lower_ia));
960 if (ia->ia_valid & ATTR_FILE)
961 lower_ia.ia_file = ecryptfs_file_to_lower(ia->ia_file);
962 if (ia->ia_valid & ATTR_SIZE) {
963 rc = truncate_upper(dentry, ia, &lower_ia);