]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs crypto: avoid unneeded memory allocation in ->readdir
authorChao Yu <yuchao0@huawei.com>
Sun, 28 Aug 2016 14:00:12 +0000 (22:00 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Sep 2016 00:27:36 +0000 (17:27 -0700)
commit678fc5ef72db875c95dc15ca9a0548581ba6867b
tree5f58117677c9badb7416822464f19354fdc2553d
parent6638d0e662fe571033710fca00fc581d058b456f
f2fs crypto: avoid unneeded memory allocation in ->readdir

When decrypting dirents in ->readdir, fscrypt_fname_disk_to_usr won't
change content of original encrypted dirent, we don't need to allocate
additional buffer for storing mirror of it, so get rid of it.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/dir.c