Unionfs: fix oops bug in file_revalidate
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:21:59 +0000 (00:21 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 30 Nov 2013 23:13:26 +0000 (18:13 -0500)
commit324b713fe7d633a643d63c6306a813404db68e87
tree38807b2f479d04a9c9c6a897103bef71ff5b1b67
parentc33234cbdd14155fd891ce60cfb98e487925aa43
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