Unionfs: fix oops bug in file_revalidate
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 5 Sep 2011 22:32:27 +0000 (18:32 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 5 Sep 2011 22:32:27 +0000 (18:32 -0400)
commit2c57ad8ab33640ba9b36f09c1e37f84bdce2314e
treebe9ee0b311a81e4dc320a7f4b5b489308c1fe607
parent3885fd2ac6973bff131e7aeb43cd7fd60e208cb2
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