Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp711766pxk; Thu, 3 Sep 2020 10:38:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwqxB/dCljh8byRbLc0SLEIXQs+hc2pvk96PddGxixDCRAqeIG5Hjb7ozpZow79XV9wXHG X-Received: by 2002:a17:906:d187:: with SMTP id c7mr3412027ejz.196.1599154715297; Thu, 03 Sep 2020 10:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599154715; cv=none; d=google.com; s=arc-20160816; b=ILXJFo1sQUntW0WDaAG8g7DlkGPNqLTA9h/lpwyfeshXQ+ROWI7bCw+INM5ZMmimz+ ux678tmNdpmX58OIhzTxwgN3SUFJ1kA5zABKCkULvzjFaeGaSlle6b6ZGBz5kNaphkwz IjMxdv8O4OYMZgjCYqgvxp9RLW32oko9Xrn8PQtQVaj5Ji3/YzJ0XOgbhUey/FSd/QdN xAFnnskrfh5b+PP4JKJMBtz/4k5aEIpUQtpgZVrizpeGQtu62u9wY7Fa6TgxksJr2vBM PpLNVVgK6ZOHoxQHskd9MKvUWkQOw9Um+ASxkE477CibJjIXhYYlKWKPZ6jbYR2GAJqx HYYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=dMPKOeEZBjMOCJzxIUtukNXq0SYfl4iOv1cDO7Tz8/I=; b=D1F5NSMVtizIRb6CpjGKsKYURXWVvjJ92DBv33rV3nCuft2Dmfl5PK8U10ebC21hWr k+ZuhItC8N5w7ShKI7QVwCw/kaXfrmRAXpduu4ifDAC2vVWKKvEREaJdx+6Xd3SHPhFP 2s8GhdDcxb4n8Q1P3+ofoYK21F3FpuWArykOI1GJegFijSDkkXDl0lExxyMJMdC68b72 q+cfZ1kcjviocTHwUfLMXriQ6XCRY+ITnnzxgE6WGgqWiVnKQNBR5v90t4iHDFYU9B7m DIk/HaTIiZoUXk4uxQzqn5Lig3zBxA+j+GH4MWLTotsNldDUtSatOC3ORzS/8ceKga5H 7gAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si2162390edd.297.2020.09.03.10.38.12; Thu, 03 Sep 2020 10:38:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727799AbgICRfL (ORCPT + 99 others); Thu, 3 Sep 2020 13:35:11 -0400 Received: from albireo.enyo.de ([37.24.231.21]:40558 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbgICRfJ (ORCPT ); Thu, 3 Sep 2020 13:35:09 -0400 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1kDt8U-0004Wm-Jl; Thu, 03 Sep 2020 17:34:58 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1kDt8U-00087R-Fu; Thu, 03 Sep 2020 19:34:58 +0200 From: Florian Weimer To: Minchan Kim Cc: Andrew Morton , LKML , Christian Brauner , linux-mm , linux-api@vger.kernel.org, oleksandr@redhat.com, Suren Baghdasaryan , Tim Murray , Sandeep Patil , Sonny Rao , Brian Geffon , Michal Hocko , Johannes Weiner , Shakeel Butt , John Dias , Joel Fernandes , Jann Horn , alexander.h.duyck@linux.intel.com, sj38.park@gmail.com, David Rientjes , Arjun Roy , Linus Torvalds , Vlastimil Babka , Christian Brauner , Daniel Colascione , Jens Axboe , Kirill Tkhai , SeongJae Park , linux-man@vger.kernel.org Subject: Re: [PATCH v9 3/3] mm/madvise: introduce process_madvise() syscall: an external memory hinting API References: <20200901000633.1920247-1-minchan@kernel.org> <20200901000633.1920247-4-minchan@kernel.org> <87blippc7p.fsf@mid.deneb.enyo.de> <20200903172618.GB1959033@google.com> Date: Thu, 03 Sep 2020 19:34:58 +0200 In-Reply-To: <20200903172618.GB1959033@google.com> (Minchan Kim's message of "Thu, 3 Sep 2020 10:26:18 -0700") Message-ID: <87pn72lq65.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Minchan Kim: > On Tue, Sep 01, 2020 at 08:46:02PM +0200, Florian Weimer wrote: >> * Minchan Kim: >> >> > ssize_t process_madvise(int pidfd, const struct iovec *iovec, >> > unsigned long vlen, int advice, unsigned int flags); >> >> size_t for vlen provides a clearer hint regarding the type of special >> treatment needed for ILP32 here (zero extension, not changing the type >> to long long). >> > > All existing system calls using iove in Linux uses unsigned long so > I want to be consistent with them unless process_madvise need something > speicial. Userspace uses int, following POSIX (where applicable). There is no consistency to be had here.