]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit080167c4e26f27b016ae4679ee8dfc2161fb3d64
tree26c59821374354ebb2dd0904de0d8f9fd4e06d2b
parent0c4756f3eee59c90896c7e7ec88379aa694efae7
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