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>
Sun, 24 Nov 2013 18:29:26 +0000 (13:29 -0500)
commitb8473f84dfc97c0474c16b4ddfc578d18e40b333
tree3150a4bc90a527c068a3dc175e9121e72e114b96
parentff55051b57fc18ee2730e4a810bd272910b2911a
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