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)
commite06f86e61d7a67fe6e826010f57aa39c674f4b1b
tree5f58117677c9badb7416822464f19354fdc2553d
parent9421d57051c534c7477f98d0576b876237fbbc4c
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