ovl: defer upper dir lock to tempfile link
authorAmir Goldstein <amir73il@gmail.com>
Mon, 15 May 2017 22:26:49 +0000 (01:26 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 4 Jul 2017 20:03:18 +0000 (22:03 +0200)
commit15932c415b3ed20bd1c1e05d071b4ad498656280
tree9a5c7e198c8529323c57534720791e232a64ddb4
parentb9ac5c274b8c9d642567022c0e319bca4db31956
ovl: defer upper dir lock to tempfile link

On copy up of regular file using an O_TMPFILE, lock upper dir only
before linking the tempfile in place.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c
fs/overlayfs/util.c