Received: by 10.223.185.116 with SMTP id b49csp4712238wrg; Tue, 27 Feb 2018 01:01:26 -0800 (PST) X-Google-Smtp-Source: AH8x2268mGvjlySlJ5V/p3CoSZ0x1ZMkj93x/NAv74Ks7g0IbfUG5sF4OeYZXfoFYY6RX+2YmG9q X-Received: by 10.99.96.73 with SMTP id u70mr10420605pgb.199.1519722086669; Tue, 27 Feb 2018 01:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519722086; cv=none; d=google.com; s=arc-20160816; b=e/RKbxEKBf3lBB+Fk5hWYV1meMvyU+UiHCeMIMGscvfixgbxMWzUMmvR09P9PwNay9 nNkk/YBKPbefpV9S+QCWpnsjCWWgy4BDj3tBjh6qBAYC+F9CsK9zFEeVev6shz/No+xx ZG7OuoD5ZlqgvP/KipgFZvZU2dZxFSOm9MQEbRCCj4hvkNccJRlEX6srrQCAS4X8Lq+w zWC8harQTIdX4vmvOs8taVDKLCfGrIX8aF88BbnDb6V1aig6z5sVBOGEEkBDgt3oJAA/ jo8g9LIUwuUPPbqaJeQ+tj8QtEOJ/EGuu7lX5+7Aw46zRgvh8YOvjswTZtl1TSzi8f7v UpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=KnFn7kg/A8IoymCsAuQ8WTzhGOwicJagoAIMT6PxqBs=; b=xrtk5eCi+UJ7kTOpOaEqUmZh+RE43tg7TsUda6wKgsL1ETYgAcfNnMgd81MPSX71Ov HQbfmsy0RUttEbew+IUufThjC3hBgGyi3ek8HaF8W4w7024TW+Ho5D3fDXrIVd7TVrvF 5ry1WmqdQj1YA2x9zScyXTjudXwKx+E2XAuNJroXgr7CcvjNuH2TvcRjbOdNVyhA77F4 1XsvcnhqyQhQmacZhGWucnbdLXrp0dNPruIBB/h4yfd+QRHX/Usi+ECT/UiSxxpbMYsv ZZfyLrc9PzcEqqHaglmvrIIuMv6L0PQFruzf0S7/Qvw/8ravyTFNZ+CaEIeAMbITVTz4 shQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t71si6774742pgc.793.2018.02.27.01.01.11; Tue, 27 Feb 2018 01:01:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752285AbeB0JA2 (ORCPT + 99 others); Tue, 27 Feb 2018 04:00:28 -0500 Received: from mail-qk0-f170.google.com ([209.85.220.170]:42444 "EHLO mail-qk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbeB0JA0 (ORCPT ); Tue, 27 Feb 2018 04:00:26 -0500 Received: by mail-qk0-f170.google.com with SMTP id b130so22591492qkg.9 for ; Tue, 27 Feb 2018 01:00:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KnFn7kg/A8IoymCsAuQ8WTzhGOwicJagoAIMT6PxqBs=; b=p2aimh8/CzI7+fSdJ36Hk7WQ+gmWAjpSb4jGY5NpFKzouHH5Y0WcxxYs+IcuXoei6X ecZMXkeSpvyar6aFdHYc4MSgjZ5Fynp35g0zX2KHC7qjxBzlglj2iZncVaOHSCRjaWx3 98+RXbhSpRkdCZD20XhsYPdNjqr8ikQskmpnbtbkmoTbz/vtI6djDyWg/w9/UG5gRVpl V8ts3ttsLvjOB3PRAt8D8OIwCM+L4SrlB2vkLDE4+6n2VVyokKCuEroJr5kZR1lpVikU oaPi61ji1OAZRHWvyLo+jg9t1PpkwKBvwxkBt8AEnfz31jKh5sZiNNNbyNxoLtZdJgZK ESZw== X-Gm-Message-State: APf1xPA0xqsw2QSaBJvgwCW7z6u2E+aSiJeNMbOs8BFbAFdZ4eRIBIid BAZP35f+9CquBcBRow0Hzb1NR/PHI/rcdLrvMhK/LQ== X-Received: by 10.55.159.212 with SMTP id i203mr21456800qke.31.1519722026041; Tue, 27 Feb 2018 01:00:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.29.117 with HTTP; Tue, 27 Feb 2018 01:00:25 -0800 (PST) In-Reply-To: <20180226235302.12708-5-ebiederm@xmission.com> References: <87po4rz4ui.fsf_-_@xmission.com> <20180226235302.12708-5-ebiederm@xmission.com> From: Miklos Szeredi Date: Tue, 27 Feb 2018 10:00:25 +0100 Message-ID: Subject: Re: [PATCH v7 5/7] fuse: Simplfiy the posix acl handling logic. To: "Eric W. Biederman" Cc: lkml , Linux Containers , linux-fsdevel , Alban Crequy , Seth Forshee , Sargun Dhillon , Dongsu Park , "Serge E. Hallyn" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 27, 2018 at 12:53 AM, Eric W. Biederman wrote: > Rename the fuse connection flag posix_acl to cached_posix_acl as that > is what it actually means. That fuse will cache and operate on the > cached value of the posix acl. > > When fc->cached_posix_acl is not set, set ACL_DONT_CACHE on the inode > so that get_acl and friends won't cache the acl values even if they > are called. > > Replace forget_all_cached_acls with fuse_forget_cached_acls. This > wrapper only takes effect when cached_posix_acl is true to prevent > losing the nocache or noxattr status in when posix acls are not > cached. Shouldn't forget_cached_acl() be taught about ACL_DONT_CACHE? I think it makes sense to generally not clear ACL_DONT_CACHE, since it's not an actual acl value that needs forgetting. Thanks, Miklos