Commit 1589cb1a authored by Li Wang's avatar Li Wang Committed by Linus Torvalds

eCryptfs: move misleading function comments

 The data encryption was moved from ecryptfs_write_end into
ecryptfs_writepage, this patch moves the corresponding function
comments to be consistent with the modification.
Signed-off-by: default avatarLi Wang <liwang@nudt.edu.cn>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3074c035
...@@ -57,6 +57,10 @@ struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) ...@@ -57,6 +57,10 @@ struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index)
* @page: Page that is locked before this call is made * @page: Page that is locked before this call is made
* *
* Returns zero on success; non-zero otherwise * Returns zero on success; non-zero otherwise
*
* This is where we encrypt the data and pass the encrypted data to
* the lower filesystem. In OpenPGP-compatible mode, we operate on
* entire underlying packets.
*/ */
static int ecryptfs_writepage(struct page *page, struct writeback_control *wbc) static int ecryptfs_writepage(struct page *page, struct writeback_control *wbc)
{ {
...@@ -481,10 +485,6 @@ int ecryptfs_write_inode_size_to_metadata(struct inode *ecryptfs_inode) ...@@ -481,10 +485,6 @@ int ecryptfs_write_inode_size_to_metadata(struct inode *ecryptfs_inode)
* @copied: The amount of data copied * @copied: The amount of data copied
* @page: The eCryptfs page * @page: The eCryptfs page
* @fsdata: The fsdata (unused) * @fsdata: The fsdata (unused)
*
* This is where we encrypt the data and pass the encrypted data to
* the lower filesystem. In OpenPGP-compatible mode, we operate on
* entire underlying packets.
*/ */
static int ecryptfs_write_end(struct file *file, static int ecryptfs_write_end(struct file *file,
struct address_space *mapping, struct address_space *mapping,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment