From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753876AbaBCVcG (ORCPT ); Mon, 3 Feb 2014 16:32:06 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:42393 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752559AbaBCVcB (ORCPT ); Mon, 3 Feb 2014 16:32:01 -0500 Date: Mon, 3 Feb 2014 21:31:53 +0000 From: Al Viro To: Christoph Hellwig Cc: Linus Torvalds , Ilya Dryomov , Sage Weil , Dave Jones , Linux Kernel Mailing List , ceph-devel@vger.kernel.org, linux-fsdevel , Guangliang Zhao , Li Wang , zheng.z.yan@intel.com Subject: Re: [PATCH v2] ceph: fix posix ACL hooks Message-ID: <20140203213153.GZ10323@ZenIV.linux.org.uk> References: <1391013467-7598-1-git-send-email-ilya.dryomov@inktank.com> <20140130075421.GA10050@infradead.org> <20140203102943.GF11829@infradead.org> <20140203211955.GY10323@ZenIV.linux.org.uk> <20140203212447.GA4843@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140203212447.GA4843@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 03, 2014 at 01:24:47PM -0800, Christoph Hellwig wrote: > On Mon, Feb 03, 2014 at 09:19:55PM +0000, Al Viro wrote: > > Result *is* a function of inode alone; the problem with 9P is that we > > are caching FIDs in the wrong place. > > I don't think that's true for CIFS unfortunately, which is path based. Yes, and...? CIFS also doesn't have hardlinks, so _there_ d_find_alias() is just fine. 9P is actually trickier; there we need some massage, but for CIFS it's literally a matter of one function call. The problem with 9P is that the way we do it right now, you might pick the wrong dentry. _Some_ alias already bears the FID you are after, but if you end up picking the one that doesn't, you might very well end up being unable to obtain one either.