Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5050962ybh; Tue, 6 Aug 2019 23:31:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaRzecO/TkzmEG4HmJnPtiXui82y87DEEM8LTUUR8Sjv89laqHtq3OfnZhmUe7H8oe53ek X-Received: by 2002:aa7:9786:: with SMTP id o6mr7549945pfp.222.1565159466927; Tue, 06 Aug 2019 23:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565159466; cv=none; d=google.com; s=arc-20160816; b=Cm7rcEa7q2ltountLYAvAttyXIO4IxAkWqucM0BfSJbBzr/WvxweEDt9UaYs3Q+lnK flBxtgvppHmZ1hO1IX0X/XFn2D5eKye1I4+JZDxk6mLV0CMqUNI1qHGeUxh7g3JjUKUc SgvOmzGZEMXJzQW24h3L4xM2sf83ANK7vFgcdRyA6QdZMFXKUFCv1VrkFVKfhezvw3fL f0SX6DFA2w4XWsyGejFvHOB7DZE5ebB0G7v1kWjvPN/Ax1//hOeGmvjOzBI0qlYHRO3V +Bu8r02nR/BmWSDMmm+Jc6c+IgwpHAVXcoafsTb3xdzVJ4oxIkGXn2xM+fIVLntbdMu1 DpDQ== 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=pglkgNEnCRFJ3FStuNi1uXlyAYvdSU6vvBjYNx9F1VI=; b=jw5F8A8zkSHLJkLREQEBjJeIA3O0D4xKuB+yFd2OVB16hH4rkKOMY/Q2tkDP14/oca weDT1+GuGqgmy4hRgTUXlNvsGGRrXTPfrmmrJlnq1aRTRjHCDCZ6gmiVTXUYU6Khu+9M 6hNjXjLTeeMLKDkvhQy+oyfVwmkJbnYWlH0Y/w4h7y9mhoTRCoKB/BOMmI4wRFSQJanI ReHwTKqrdi5Wo5TdhdEeTAbjNaHW/K6aaifyNbjccSt7EJqB5xJQvtCO43I/lKuxLdzg M6at9rh7+/dorNiNQrsgj4B+ewJ9kHpQgZapi98DfBuWkIdOZMuB9+0FRcoVRks5fQan owIA== 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 z124si30672736pfb.208.2019.08.06.23.30.50; Tue, 06 Aug 2019 23:31:06 -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 S1727056AbfHGGaN (ORCPT + 99 others); Wed, 7 Aug 2019 02:30:13 -0400 Received: from verein.lst.de ([213.95.11.211]:34839 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726733AbfHGGaM (ORCPT ); Wed, 7 Aug 2019 02:30:12 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 662B368B05; Wed, 7 Aug 2019 08:30:03 +0200 (CEST) Date: Wed, 7 Aug 2019 08:30:02 +0200 From: Christoph Hellwig To: Hugh Dickins Cc: Al Viro , Sergey Senozhatsky , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , David Howells , Christoph Hellwig , 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: <20190807063002.GG6627@lst.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.