Lines Matching refs:ecryptfs_inode

379 static int ecryptfs_write_inode_size_to_header(struct inode *ecryptfs_inode)  in ecryptfs_write_inode_size_to_header()  argument
389 put_unaligned_be64(i_size_read(ecryptfs_inode), file_size_virt); in ecryptfs_write_inode_size_to_header()
390 rc = ecryptfs_write_lower(ecryptfs_inode, file_size_virt, 0, in ecryptfs_write_inode_size_to_header()
404 static int ecryptfs_write_inode_size_to_xattr(struct inode *ecryptfs_inode) in ecryptfs_write_inode_size_to_xattr() argument
409 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_path.dentry; in ecryptfs_write_inode_size_to_xattr()
429 put_unaligned_be64(i_size_read(ecryptfs_inode), xattr_virt); in ecryptfs_write_inode_size_to_xattr()
441 int ecryptfs_write_inode_size_to_metadata(struct inode *ecryptfs_inode) in ecryptfs_write_inode_size_to_metadata() argument
445 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_inode_size_to_metadata()
448 return ecryptfs_write_inode_size_to_xattr(ecryptfs_inode); in ecryptfs_write_inode_size_to_metadata()
450 return ecryptfs_write_inode_size_to_header(ecryptfs_inode); in ecryptfs_write_inode_size_to_metadata()
471 struct inode *ecryptfs_inode = mapping->host; in ecryptfs_write_end() local
473 &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_end()
479 rc = ecryptfs_write_lower_page_segment(ecryptfs_inode, page, 0, in ecryptfs_write_end()
483 fsstack_copy_inode_size(ecryptfs_inode, in ecryptfs_write_end()
484 ecryptfs_inode_to_lower(ecryptfs_inode)); in ecryptfs_write_end()
508 if (pos + copied > i_size_read(ecryptfs_inode)) { in ecryptfs_write_end()
509 i_size_write(ecryptfs_inode, pos + copied); in ecryptfs_write_end()
512 (unsigned long long)i_size_read(ecryptfs_inode)); in ecryptfs_write_end()
514 rc = ecryptfs_write_inode_size_to_metadata(ecryptfs_inode); in ecryptfs_write_end()