-
- Downloads
ecryptfs: modify write path to encrypt page in writepage
Change the write path to encrypt the data only when the page is written to disk in ecryptfs_writepage. Previously, ecryptfs encrypts the page in ecryptfs_write_end which means that if there are multiple write requests to the same page, ecryptfs ends up re-encrypting that page over and over again. This patch minimizes the number of encryptions needed. Signed-off-by:Thieu Le <thieule@chromium.org> [tyhicks: Changed NULL .drop_inode sop pointer to generic_drop_inode] Signed-off-by:
Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Showing
- fs/ecryptfs/ecryptfs_kernel.h 0 additions, 1 deletionfs/ecryptfs/ecryptfs_kernel.h
- fs/ecryptfs/file.c 8 additions, 1 deletionfs/ecryptfs/file.c
- fs/ecryptfs/main.c 0 additions, 2 deletionsfs/ecryptfs/main.c
- fs/ecryptfs/mmap.c 27 additions, 14 deletionsfs/ecryptfs/mmap.c
- fs/ecryptfs/read_write.c 2 additions, 10 deletionsfs/ecryptfs/read_write.c
- fs/ecryptfs/super.c 1 addition, 2 deletionsfs/ecryptfs/super.c
Loading
Please register or sign in to comment