ovl: don't use a temp buf for encoding real fh
authorAmir Goldstein <amir73il@gmail.com>
Fri, 15 Nov 2019 11:33:04 +0000 (13:33 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 10 Dec 2019 15:00:55 +0000 (16:00 +0100)
commitec7bbb53d339250df7d4b042ff93c468535c0a90
tree32152e73d4bc54dadf062f7c11f91ab060a382d6
parentcbe7fba8edfc8cb8e621599e376f8ac5c224fa72
ovl: don't use a temp buf for encoding real fh

We can allocate maximum fh size and encode into it directly.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c