summaryrefslogtreecommitdiff
path: root/lib/ucs2_string.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-05-23 03:39:43 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2017-05-24 07:10:36 +0300
commitb82a6ea6ec39f1b5ef949a38e334eed0dc29f4d1 (patch)
tree4d75aeb20818b0a8aa93319547b4a6fa7735abe2 /lib/ucs2_string.c
parent6afae6336ac9c19b5956c003e882b1ee4bca2a9d (diff)
downloadlinux-b82a6ea6ec39f1b5ef949a38e334eed0dc29f4d1.tar.xz
f2fs: don't bother checking for encryption key in ->mmap()
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(). This f2fs copy of this code was also broken in that it wouldn't actually have failed if the key was in fact unavailable. Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: David Gstir <david@sigma-star.at> Acked-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib/ucs2_string.c')
0 files changed, 0 insertions, 0 deletions