ovl: copy up regular file using O_TMPFILE
authorAmir Goldstein <amir73il@gmail.com>
Tue, 17 Jan 2017 04:34:55 +0000 (06:34 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 7 Feb 2017 14:47:14 +0000 (15:47 +0100)
commitd8514d8edb5b045cf7f708e14f888ce760d60f0b
tree26c59821374354ebb2dd0904de0d8f9fd4e06d2b
parent42f269b925405d9dd45014823e5057786d6ca452
ovl: copy up regular file using O_TMPFILE

In preparation for concurrent copy up, implement copy up
of regular file as O_TMPFILE that is linked to upperdir
instead of a file in workdir that is moved to upperdir.

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