Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6175641ybh; Wed, 7 Aug 2019 18:51:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ/2DGTHjZPyMbm1dKHUGpf+/wFYAByrdPFjRtFJdIZt5RD4nwWj/8Y/7TZ89RZde+GG0T X-Received: by 2002:a62:8f91:: with SMTP id n139mr10234357pfd.48.1565229095020; Wed, 07 Aug 2019 18:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565229095; cv=none; d=google.com; s=arc-20160816; b=vGtWB7m876aH2c3zlpmnLeGE+GPo0GnW6J06JYUaEC2lNbIliifTX4VkZBLIh366y5 is7fUFx0m0CteOtlXzL41KTehfhkAPm954f2C82i2HF5fciRk2N2hVJe8X407vvSwGaK UvpAv7f6XcQ9PWsPSa6UatEREtQnypVUAbCatrTk+fDDyb9gn9sDmS0H1ET64oJGKfwh Av4JOuCzI+nQZ4RtgvCRp698+j+IjavRsIpZH4N8oiyK0X3ITCol1WW1B+O5v8leTp7d 9M9gZfHl6rVEvgMfRt8i5ERF8ZmEXq/Am1Jl3ExaIg9umN4Ds/qV71pSm7UOQM62tc1T BbdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Eutl/Va4fB95+mrhugvFBDa+EZ1TsUBmutu5kSxy6UQ=; b=YXbzwWwlEuDhWOdxMTSJA4hNCGt/xo60HFjZGnUgKW1g7q/y/baChexcj9JrFEnEeB biX1026EZWxFU77LJ/0iAD0Sc8Ttr0xBYDE1kIOZ0adPbjeDxzoPesjHLeTxeUGDfENd RiuoKBGDHsDUvAdad5RPxZ0CQC8Azb8SKoDyJq8rUe2aE7syzvE5xRnL7LJP5/6ClZBA vsdr5G8CPstc1ynOxV5LRowcsGf6x2UmO4CdcKlIeeHUf9LgFxeGm7cCTlG6xqW69zAX znDNucrALE/dfDXOiK2cL7VFOZKf5nUYvn+BD28E1A1o1tdNvSW3pt6wYFgWDvaaWLTD zfgw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si52549230pfm.83.2019.08.07.18.51.19; Wed, 07 Aug 2019 18:51:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730573AbfHHBXX (ORCPT + 99 others); Wed, 7 Aug 2019 21:23:23 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:49848 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730382AbfHHBXX (ORCPT ); Wed, 7 Aug 2019 21:23:23 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hvX98-0000RZ-U7; Thu, 08 Aug 2019 01:23:15 +0000 Date: Thu, 8 Aug 2019 02:23:14 +0100 From: Al Viro To: Christoph Hellwig Cc: Hugh Dickins , Sergey Senozhatsky , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , David Howells , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCHv2 2/3] i915: convert to new mount API Message-ID: <20190808012314.GK1131@ZenIV.linux.org.uk> References: <20190805160307.5418-1-sergey.senozhatsky@gmail.com> <20190805160307.5418-3-sergey.senozhatsky@gmail.com> <20190805181255.GH1131@ZenIV.linux.org.uk> <20190805182834.GI1131@ZenIV.linux.org.uk> <20190807063002.GG6627@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190807063002.GG6627@lst.de> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 07, 2019 at 08:30:02AM +0200, Christoph Hellwig wrote: > On Tue, Aug 06, 2019 at 12:50:10AM -0700, Hugh Dickins wrote: > > Though personally I'm averse to managing "f"objects through > > "m"interfaces, which can get ridiculous (notably, MADV_HUGEPAGE works > > on the virtual address of a mapping, but the huge-or-not alignment of > > that mapping must have been decided previously). In Google we do use > > fcntls F_HUGEPAGE and F_NOHUGEPAGE to override on a per-file basis - > > one day I'll get to upstreaming those. > > Such an interface seems very useful, although the two fcntls seem a bit > odd. > > But I think the point here is that the i915 has its own somewhat odd > instance of tmpfs. If we could pass the equivalent of the huge=* > options to shmem_file_setup all that garbage (including the > shmem_file_setup_with_mnt function) could go away. ... or follow shmem_file_super() with whatever that fcntl maps to internally. I would really love to get rid of that i915 kludge.