Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765367AbXEWJah (ORCPT ); Wed, 23 May 2007 05:30:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758263AbXEWJaZ (ORCPT ); Wed, 23 May 2007 05:30:25 -0400 Received: from mail-gw3.sa.ew.hu ([212.108.200.82]:52714 "EHLO mail-gw3.sa.ew.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764992AbXEWJaX (ORCPT ); Wed, 23 May 2007 05:30:23 -0400 To: jblunck@suse.de CC: viro@ftp.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org In-reply-to: <4de7f8a60705230216n4425e19bqddd8b54b6a0ff74a@mail.gmail.com> (jblunck@suse.de) Subject: Re: [RFC PATCH] file as directory References: <20070522221045.GH4095@ftp.linux.org.uk> <20070523070306.GM4095@ftp.linux.org.uk> <20070523073658.GO4095@ftp.linux.org.uk> <4de7f8a60705230216n4425e19bqddd8b54b6a0ff74a@mail.gmail.com> Message-Id: From: Miklos Szeredi Date: Wed, 23 May 2007 11:28:52 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 26 > > So your question is, which mount takes priority on the lookup? It > > probably should be the propagated real mount, rather than the > > dir-on-file one, shouldn't it? > > > > Maybe this might belong into __link_path_walk() similar to the > handling of symbolic links. If the real mount has always higher > priority why do we bother in follow_mount() about it. Do you mean, that follow_mount() should never descend into the dir-on-file mount but that should always be done by __link_path_walk()? This could make sense. __lookup_mnt() currently returns the first matching mount in the hash list. With your suggestion, we'd need two __lookup_mnt() variants (or a parameter). One, that only matches normal mounts, and one that only matches dir-on-file mounts. Is that it? Miklos - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/