ovl: do not set overlay.opaque on non-dir create
authorAmir Goldstein <amir73il@gmail.com>
Mon, 24 Apr 2017 19:26:40 +0000 (22:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:49:47 +0000 (14:49 +0200)
commitf33f17b28d312ac2cc7c06e1a96aaa93a803be1d
treebec76f7d21d928dc231145c4543fc86b0f4a9d0b
parent6a1baa3a163c8a802c008eeac65ab659ecdd0e0a
ovl: do not set overlay.opaque on non-dir create

commit 4a99f3c83dc493c8ea84693d78cd792839c8aa64 upstream.

The optimization for opaque dir create was wrongly being applied
also to non-dir create.

Fixes: 97c684cc9110 ("ovl: create directories inside merged parent opaque")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/dir.c