summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/mmap.c
diff options
context:
space:
mode:
authorLi Wang <liwang@nudt.edu.cn>2012-01-25 15:40:31 +0800
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-25 15:10:53 -0800
commit1589cb1a94c381579a0235ca708d9e2dca6d3a39 (patch)
treed47e39780ac8cf5d6eefc2d4abc69ba92d6b239e /fs/ecryptfs/mmap.c
parent3074c0350b173c9e98b62685e0a61a66d9ff8728 (diff)
downloadlinux-1589cb1a94c381579a0235ca708d9e2dca6d3a39.tar.gz
linux-1589cb1a94c381579a0235ca708d9e2dca6d3a39.tar.bz2
linux-1589cb1a94c381579a0235ca708d9e2dca6d3a39.zip
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: Li Wang <liwang@nudt.edu.cn> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ecryptfs/mmap.c')
-rw-r--r--fs/ecryptfs/mmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ecryptfs/mmap.c b/fs/ecryptfs/mmap.c
index 6a44148c5fb9..10ec695ccd68 100644
--- a/fs/ecryptfs/mmap.c
+++ b/fs/ecryptfs/mmap.c
@@ -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
*
* 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)
{
@@ -481,10 +485,6 @@ int ecryptfs_write_inode_size_to_metadata(struct inode *ecryptfs_inode)
* @copied: The amount of data copied
* @page: The eCryptfs page
* @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,
struct address_space *mapping,