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>
Mon, 23 Jul 2007 00:50:56 +0000 (20:50 -0400)
commita387b131d4b70ee3c8b78068f978fe1604764053
tree1fa096b841593b03f818fff7672c5c6ed2f19350
parentc3f964daca063ad27d4860304e6222f9497fa915
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