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, 31 Jan 2012 04:53:24 +0000 (23:53 -0500)
commite644ccb58a531f99e0cb91851c91ccbfafd5fd9f
treed0e2c58364a8f13b02f158b807f66d3d9586d844
parentd098b666b479ba095a669d960795042be5f10e21
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