Unionfs: cache coherency after lower objects are removed
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 27 Nov 2007 00:54:59 +0000 (19:54 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Nov 2007 00:54:59 +0000 (19:54 -0500)
commit0e99e573a40b5a1e85cdf4be071538041f62ac7b
tree4535aa4eb4784b3129be586c0a5b29bb2034049f
parente5ffb31f2ed8ee776cfb99085c5cbb6e1fe8b6b6
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