Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1852485imm; Thu, 19 Jul 2018 08:53:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpemrI5i/93cHQf9jOgP8xA65XPeyvAzl1DLfmc65oUfKlvio8ZGkrU1kJxJCHVHaolCESiB X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr10544987plk.256.1532015620940; Thu, 19 Jul 2018 08:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532015620; cv=none; d=google.com; s=arc-20160816; b=bxh8JEnSV5Wsx+2OOtFuRVVp1tTOe1ziNCKISRf1Ov7Yqkle8RQ6BQVDHEiz11h2/Q PlYNi6p8uvfqJmQawrCdS6mJlMYNo5LVIMIp9uvDSHl6Ae1RRNTPtJ6rZMwGAoZrD+lw LcYZpf3KzJ0HLUtKiBc6pyf12kET5m6wvyKCknFPNuDI9KIB9c8wyFnX3rsiP4OINzgY Bxp4Sz9SCUu4wL+hMmbf2DJGMtcLlmbzo87HeRZULOvUYKhvhCNuh5PohCiP76te1Sjw /o2lY7lVe7M0ty7gm2EZO5jjLtwkxhQ9J9FtPAKHI+YkxFiGq2auQsaq2gudEP3hgwDf AIFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=FmqUpAPTNmKswWB+sJXnF+xyDy+60b3tKBJkokpsurs=; b=aEpxJke2FN2njdc2+L3sMG5QyDQ6Fi/sPc3HsNmW1rhH7CS5mchaVLodkqrSngSfJJ ej7suOfxQGDZSLqZKo03WR9NCyCPZVy01CrdEafm3WytV63xIGELyy1m2mXWtADBWI60 dnGyceqfGLgJk5CoX/WxSZgilDYQi05UgmZsr+ncU6FKdiFjx9u1uQiWlOi52VoYHCMa O4Z0LEEjYNYQde43BghFzjMrcLsfJwhNRHMxRCeDsNxrhl2OW0urgcYt7S9k25uPwetG DKzv19PpKeldw1Deru+DZjlGJt7TEyxAO9eJOY8MlMoEhxafbmIOq/pyqCGV+pcb0dJw NmNQ== 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 y11-v6si5465050pll.89.2018.07.19.08.53.26; Thu, 19 Jul 2018 08:53:40 -0700 (PDT) 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 S1732005AbeGSQgd (ORCPT + 99 others); Thu, 19 Jul 2018 12:36:33 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33478 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727575AbeGSQgd (ORCPT ); Thu, 19 Jul 2018 12:36:33 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0D7BB81A88D4; Thu, 19 Jul 2018 15:52:46 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA06C1C5A6; Thu, 19 Jul 2018 15:52:44 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20180718154637.31878-1-mszeredi@redhat.com> <18289.1531987758@warthog.procyon.org.uk> To: Miklos Szeredi Cc: dhowells@redhat.com, Miklos Szeredi , Al Viro , overlayfs , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH] vfs: make open_with_fake_path() not contribute to nr_files MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30899.1532015564.1@warthog.procyon.org.uk> Date: Thu, 19 Jul 2018 16:52:44 +0100 Message-ID: <30900.1532015564@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 19 Jul 2018 15:52:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 19 Jul 2018 15:52:46 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miklos Szeredi wrote: > What the cachefiles use case would be? Cachfiles has to open the backing file so that it can write to it, and it has to do it every time it writes because to leave a bunch of files open contributes to ENFILE/EMFILE. In the near future it's going to have to open the backing file so that it can read from it too as I need to switch to using the io context stuff and get rid of my usage of bmap(). So it would be convenient to be able to keep the open backing file around for longer to avoid constantly needing to open/close it. David