From: Erez_Zadok Date: Mon, 28 May 2007 23:38:14 +0000 (-0400) Subject: bug fix: prevent null mntget warning messages in unionfs_lookup_backend X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=b7a73aa7af8b7a10f5d153f617b5c772f3787a40;p=unionfs-3.2.y.git bug fix: prevent null mntget warning messages in unionfs_lookup_backend Don't try to mntget a lower mnt at a point where the lower mnts don't yet exist (the callers will have them later on). Instead, get the lower mnt of the sb->s_root. Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c index 6409387ec816..ead0c6ac8063 100644 --- a/fs/unionfs/lookup.c +++ b/fs/unionfs/lookup.c @@ -328,7 +328,7 @@ out_negative: * mount-point crossing */ first_dentry = dentry; - first_hidden_mnt = unionfs_mntget(dentry, bindex); + first_hidden_mnt = unionfs_mntget(dentry->d_sb->s_root, bindex); } unionfs_set_lower_dentry_idx(dentry, first_dentry_offset, first_hidden_dentry);