Unionfs: branch-management bug-fix to lower mnt counts
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 17 Jul 2007 03:54:11 +0000 (23:54 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 29 Apr 2011 02:24:20 +0000 (22:24 -0400)
commit7663d00cfbaa98297549771829183ecf2679576a
tree59f32e381cd0376fd31f37b991b5d3566224e09f
parentdb21604740f95bf5d5b3b14ccb54f110bf9ca572
Unionfs: branch-management bug-fix to lower mnt counts

When we revalidate opened files, the files may point to a different set of
files on the lower branches: this could happen especially if we insert a new
leftmost branch which happens to have duplicate file names of already-open
files in lower-priority branches.  In this case, update the mnt counts of
the old and new branches which hold the file accordingly.  Without this fix,
the mntcnt of one branch is going to be one too high; and another will be
one too low.

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