Unionfs: fix oops bug in file_revalidate
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 05:03:42 +0000 (01:03 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 16:07:27 +0000 (11:07 -0500)
commit4f4c57f66de516c8b07c150bad666c430bd46d70
treeb2dd1538d8ebae899e5a855c1bd15d5bd3f674db
parent0f557777917448d4881241ce6fc6b1bbf6d01278
Unionfs: fix oops bug in file_revalidate

Reverses commit "3e9b8b599aa6832e464f86872ca37840090de630" (in unionfs-3.1
tree) which did this:

   ``Unionfs: revalidate files which are open but unlinked

   Need to re-open the file if the starting dentry is on a higher priority
   branch than the currently opened file (which could happen when we ftruncate
   an opened, but unlinked file).''

That fix caused oopses in file_revalidate for some people.  So, I'm
reversing that old fix: it's possible that bug is already fixed thanks to
other code changes.  If not, we'll need to test and fix revalidation of
open/unlinked files differently and carefully.

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