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>
Fri, 22 Nov 2013 23:53:04 +0000 (18:53 -0500)
commitab8a8184a4fc7a989391f92463a831e33d1938bc
tree28080b1b279e9c86708333d5a42a1fc8efdeeb8b
parenteddc9dcdae8e477f246e7bebc6f62494288e6f66
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