[PATCH 1/4] ext4: don't bother checking for encryption key in ->mmap()

Theodore Ts'o tytso at mit.edu
Fri Jun 23 16:46:27 PDT 2017


On Mon, May 22, 2017 at 05:39:42PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers at google.com>
> 
> Since only an open file can be mmap'ed, and we only allow open()ing an
> encrypted file when its key is available, there is no need to check for
> the key again before permitting each mmap().
> 
> Signed-off-by: Eric Biggers <ebiggers at google.com>

Thanks, applied.

					- Ted



More information about the linux-mtd mailing list