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)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 26 Apr 2017 12:33:44 +0000 (14:33 +0200)
commit4a99f3c83dc493c8ea84693d78cd792839c8aa64
treee65e0416cdf22e3931fb2f9ef2aea9a0f4da1a3b
parentb0990fbbbd147da2096b24f2d462abe02ca251fd
ovl: do not set overlay.opaque on non-dir create

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>
Cc: <stable@vger.kernel.org> # v4.10
fs/overlayfs/dir.c