ovl: cleanup dir index when dir nlink drops to zero
authorAmir Goldstein <amir73il@gmail.com>
Tue, 26 Sep 2017 04:40:37 +0000 (07:40 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:25:55 +0000 (11:25 +0100)
commit89a17556ce4d113f6e7896e118a14f79a84484e9
tree2474e35592add655063c20ba4ff674df07b4200f
parent016b720f5558d825bc0a4c6d2bdd6929fbe86536
ovl: cleanup dir index when dir nlink drops to zero

When non-dir index union nlink drops to zero the non-dir index
is cleaned. Do the same for directory type index entries when
union directory is removed.

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