bug fix: get lower mnt from root dentry instead of lower dentry
authorErez_Zadok <ezk@cs.sunysb.edu>
Mon, 28 May 2007 23:18:45 +0000 (19:18 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 00:44:03 +0000 (19:44 -0500)
commita4069a256b06898bf52ff2f5b21966acba69dbb7
treecdb2281efd5439170217ac8cad18139f30226b25
parent8aa0451c077149873458cea83d20ecb259e31736
bug fix: get lower mnt from root dentry instead of lower dentry

While copying-up a file, the union object hasn't been fully formed yet, so
we don't have all the lower dentries/mnts to use (the caller will have them
later on).  Therefore, we should use the sb->s_root's lower mnt here.  This
fixes a "NULL mnt" warning message that came from unionfs_mntget.

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