Lines Matching defs:ia
723 * @ia: Address of the ecryptfs inode's attributes
736 static int truncate_upper(struct dentry *dentry, struct iattr *ia,
746 if (unlikely((ia->ia_size == i_size))) {
755 if (ia->ia_size > i_size) {
764 (ia->ia_size - 1), 1);
765 } else { /* ia->ia_size < i_size_read(inode) */
767 * in which ia->ia_size is located. Fill in the end of
768 * that page from (ia->ia_size & ~PAGE_MASK) to
771 - (ia->ia_size & ~PAGE_MASK));
774 truncate_setsize(inode, ia->ia_size);
775 lower_ia->ia_size = ia->ia_size;
788 ia->ia_size, num_zeros);
797 truncate_setsize(inode, ia->ia_size);
810 upper_size_to_lower_size(crypt_stat, ia->ia_size);
856 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length };
864 rc = truncate_upper(dentry, &ia, &lower_ia);
888 * @ia: Structure with flags of what to change and values
898 struct dentry *dentry, struct iattr *ia)
952 rc = setattr_prepare(&nop_mnt_idmap, dentry, ia);
955 if (ia->ia_valid & ATTR_SIZE) {
956 rc = ecryptfs_inode_newsize_ok(inode, ia->ia_size);
961 memcpy(&lower_ia, ia, sizeof(lower_ia));
962 if (ia->ia_valid & ATTR_FILE)
963 lower_ia.ia_file = ecryptfs_file_to_lower(ia->ia_file);
964 if (ia->ia_valid & ATTR_SIZE) {
965 rc = truncate_upper(dentry, ia, &lower_ia);