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

Richard Weinberger richard.weinberger at gmail.com
Tue May 23 07:14:20 PDT 2017


On Tue, May 23, 2017 at 2:39 AM, Eric Biggers <ebiggers3 at gmail.com> 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>

Acked-by: Richard Weinberger <richard at nod.at>

-- 
Thanks,
//richard



More information about the linux-mtd mailing list