diff --git a/fs/sharefs/lookup.c b/fs/sharefs/lookup.c index fb6da6b11be37c48cdaf6ee069e123c081a981f0..a4b66ecffb1961674773c134fcdd174cdb0f9b5b 100644 --- a/fs/sharefs/lookup.c +++ b/fs/sharefs/lookup.c @@ -154,17 +154,9 @@ static struct dentry *__sharefs_interpose(struct dentry *dentry, { struct inode *inode; struct inode *lower_inode; - struct super_block *lower_sb; struct dentry *ret_dentry; lower_inode = d_inode(lower_path->dentry); - lower_sb = sharefs_lower_super(sb); - - /* check that the lower file system didn't cross a mount point */ - if (lower_inode->i_sb != lower_sb) { - ret_dentry = ERR_PTR(-EXDEV); - goto out; - } /* * We allocate our new inode below by calling sharefs_iget,