From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f67.google.com ([209.85.218.67]:35190 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730910AbeGRQYk (ORCPT ); Wed, 18 Jul 2018 12:24:40 -0400 Received: by mail-oi0-f67.google.com with SMTP id i12-v6so9681565oik.2 for ; Wed, 18 Jul 2018 08:46:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180718124340.GS30522@ZenIV.linux.org.uk> References: <20180711152555.GR30522@ZenIV.linux.org.uk> <20180711161540.GS30522@ZenIV.linux.org.uk> <20180712124326.GA19272@ZenIV.linux.org.uk> <20180712155337.GU30522@ZenIV.linux.org.uk> <20180718025636.GA26175@ZenIV.linux.org.uk> <20180718132955.2bf185b7@canb.auug.org.au> <20180718124340.GS30522@ZenIV.linux.org.uk> From: Miklos Szeredi Date: Wed, 18 Jul 2018 17:46:09 +0200 Message-ID: Subject: Re: vfs / overlayfs conflict resolution for linux-next To: Al Viro Cc: Stephen Rothwell , linux-fsdevel , Linux Kernel Mailing List , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Jul 18, 2018 at 2:43 PM, Al Viro wrote: > On Wed, Jul 18, 2018 at 02:10:32PM +0200, Miklos Szeredi wrote: >> On Wed, Jul 18, 2018 at 9:25 AM, Miklos Szeredi wrote: >> > On Wed, Jul 18, 2018 at 5:29 AM, Stephen Rothwell wrote: >> >> Hi Al, >> >> >> >> On Wed, 18 Jul 2018 03:56:37 +0100 Al Viro wrote: >> >>> >> >>> ... and now it even builds. Said that, I would really like to hear something >> >>> from you - I can duplicate the entire overlayfs-next and merge it into >> >>> my #for-next and ask Steven to use that instead of your tree, but I very >> >>> much dislike going over your head like that. >> >>> >> >>> I realize that you'd been away for a while and probably are digging yourself >> >>> from under the piles of mail, but it's getting late in the cycle and I want >> >>> to get #for-next into reasonably sane shape. Please, look through that >> >>> thing and respond. Pushed updated series based on your vfs.git#for-ovl branch to the overlayfs-next tree. There's the additional patch dealing with nr_files accounting (will post for review shortly). That one has a trivial conflict with the mount series, otherwise merges cleanly with viro/vfs.git#for-next. I like the call_with_creds() idea. I didn't realize that override_creds()/revert_creds() can be quite heavyweight due to doing (unnecessary in this case) refcounting. Could use call_with_creds() in overlayfs too, since we hold ref on ofs->creator_cred for the lifetime of the filesystem. Thanks, Miklos