Unionfs: cache coherency after lower objects are removed
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 11 Sep 2007 00:19:29 +0000 (20:19 -0400)
committerErez_Zadok <ezk@cs.sunysb.edu>
Tue, 11 Sep 2007 00:19:29 +0000 (20:19 -0400)
commitcdb61a47ebf0db03180979d7654c0a4dc86fa87d
treea051cd7e0620edf5ab993435f86619350ecacb6c
parentb0ba6f8b633efe75efe8b79df0ddfce72b87cf61
Unionfs: cache coherency after lower objects are removed

Prevent an oops if a lower file is deleted and then it is stat'ed from the
upper layer.  Ensure that we return a negative dentry so the user will get
an ENOENT.  Properly dput/mntput so we don't leak references at the lower
file system.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/lookup.c